Public Member Functions | Private Attributes | List of all members
SystGroupHelper Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-04-09/3FlavorAna/syst_framework/syst_header.h"

Public Member Functions

 SystGroupHelper (std::vector< const ISyst * > systs, std::vector< int > shifts, bool dummy)
 
 SystGroupHelper (std::vector< const ISyst * > systs)
 
Group GetShifts ()
 

Private Attributes

std::map< int, TString > fShiftNames
 
std::vector< const ISyst * > fSysts
 
std::vector< intfShifts
 
bool fDummy
 

Detailed Description

Definition at line 162 of file syst_header.h.

Constructor & Destructor Documentation

SystGroupHelper::SystGroupHelper ( std::vector< const ISyst * >  systs,
std::vector< int shifts,
bool  dummy 
)
inline

Definition at line 165 of file syst_header.h.

166  : fSysts(systs), fShifts(shifts), fDummy(dummy) {}
std::vector< SystGroupDef > systs
Definition: syst_header.h:385
std::vector< const ISyst * > fSysts
Definition: syst_header.h:189
std::vector< int > fShifts
Definition: syst_header.h:190
SystGroupHelper::SystGroupHelper ( std::vector< const ISyst * >  systs)
inline

Definition at line 168 of file syst_header.h.

169  : fSysts(systs), fShifts({+2, +1, -1, -2}), fDummy(false) {}
std::vector< SystGroupDef > systs
Definition: syst_header.h:385
std::vector< const ISyst * > fSysts
Definition: syst_header.h:189
std::vector< int > fShifts
Definition: syst_header.h:190

Member Function Documentation

Group SystGroupHelper::GetShifts ( )
inline

Definition at line 171 of file syst_header.h.

References ana::kNoShift, runNovaSAM::ret, and sigma().

Referenced by GetFluxGroupShifts(), GetGeniePCAGroupShifts(), GetXSec1GroupShifts(), GetXSec2GroupShifts(), GetXSec3GroupShifts(), GetXSec4GroupShifts(), GetXSec5GroupShifts(), GetXSec6GroupShifts(), and GetXSecAllGroupShifts().

172  {
173  Group ret;
174  for(auto syst: fSysts){
175  std::map<TString, SystShifts> systshifts;
176  for(auto sigma: fShifts)
177  systshifts.insert({fShiftNames[sigma],
178  fDummy ? kNoShift : SystShifts(syst, sigma)
179  });
180  ret.insert({TString(syst->ShortName()), systshifts});
181  }
182  return ret;
183  }
Simple record of shifts applied to systematic parameters.
Definition: SystShifts.h:20
std::map< int, TString > fShiftNames
Definition: syst_header.h:185
std::vector< const ISyst * > fSysts
Definition: syst_header.h:189
double sigma(TH1F *hist, double percentile)
const SystShifts kNoShift
Definition: SystShifts.cxx:22
std::map< TString, std::map< TString, SystShifts > > Group
Definition: syst_header.h:40
std::vector< int > fShifts
Definition: syst_header.h:190

Member Data Documentation

bool SystGroupHelper::fDummy
private

Definition at line 191 of file syst_header.h.

std::map<int, TString> SystGroupHelper::fShiftNames
private
Initial value:
=
{{+1, "PlusOne"}, {-1, "MinusOne"},
{0, "NoShift"},
{+2, "PlusTwo"}, {-2, "MinusTwo"}}

Definition at line 185 of file syst_header.h.

std::vector<int> SystGroupHelper::fShifts
private

Definition at line 190 of file syst_header.h.

std::vector<const ISyst*> SystGroupHelper::fSysts
private

Definition at line 189 of file syst_header.h.


The documentation for this class was generated from the following file: