Simple record of shifts applied to systematic parameters. More...
#include <SystShifts.h>
Public Member Functions | |
SystShifts () | |
SystShifts (const ISyst *syst, double shift) | |
SystShifts (const std::map< const ISyst *, double > &shifts) | |
bool | IsNominal () const |
void | SetShift (const ISyst *syst, double shift) |
Shifts are 0=nominal, -1,+1 = 1 sigma shifts. More... | |
double | GetShift (const ISyst *syst) const |
void | ResetToNominal () |
double | Penalty () const |
Penalty term for chi-squared fits. More... | |
void | Shift (caf::SRSliceProxy *slc, double &weight) const |
std::string | ShortName () const |
Brief description of component shifts, for printing to screen. More... | |
std::string | LatexName () const |
Long description of component shifts, for plot labels. More... | |
int | ID () const |
SystShifts with the same set of systs should have the same ID. More... | |
std::vector< const ISyst * > | ActiveSysts () const |
void | SaveTo (TDirectory *dir) const |
Static Public Member Functions | |
static SystShifts | Nominal () |
static SystShifts | RandomThrow (const std::vector< const ISyst * > &systs) |
static std::unique_ptr < SystShifts > | LoadFrom (TDirectory *dir) |
Protected Attributes | |
std::unordered_map< const ISyst *, double > | fSysts |
int | fID |
Static Protected Attributes | |
static int | fgNextID = 1 |
The next unused ID. More... | |
Simple record of shifts applied to systematic parameters.
Definition at line 16 of file SystShifts.h.
ana::SystShifts::SystShifts | ( | ) |
Definition at line 20 of file SystShifts.cxx.
ana::SystShifts::SystShifts | ( | const ISyst * | syst, |
double | shift | ||
) |
Definition at line 25 of file SystShifts.cxx.
ana::SystShifts::SystShifts | ( | const std::map< const ISyst *, double > & | shifts | ) |
Definition at line 32 of file SystShifts.cxx.
std::vector< const ISyst * > ana::SystShifts::ActiveSysts | ( | ) | const |
Definition at line 120 of file SystShifts.cxx.
double ana::SystShifts::GetShift | ( | const ISyst * | syst | ) | const |
Definition at line 56 of file SystShifts.cxx.
|
inline |
SystShifts with the same set of systs should have the same ID.
Definition at line 44 of file SystShifts.h.
|
inline |
Definition at line 26 of file SystShifts.h.
std::string ana::SystShifts::LatexName | ( | ) | const |
Long description of component shifts, for plot labels.
Definition at line 106 of file SystShifts.cxx.
|
static |
Definition at line 151 of file SystShifts.cxx.
|
inlinestatic |
Definition at line 23 of file SystShifts.h.
double ana::SystShifts::Penalty | ( | ) | const |
Penalty term for chi-squared fits.
Definition at line 73 of file SystShifts.cxx.
|
static |
Definition at line 39 of file SystShifts.cxx.
void ana::SystShifts::ResetToNominal | ( | ) |
Definition at line 65 of file SystShifts.cxx.
void ana::SystShifts::SaveTo | ( | TDirectory * | dir | ) | const |
Definition at line 128 of file SystShifts.cxx.
void ana::SystShifts::SetShift | ( | const ISyst * | syst, |
double | shift | ||
) |
Shifts are 0=nominal, -1,+1 = 1 sigma shifts.
Definition at line 47 of file SystShifts.cxx.
void ana::SystShifts::Shift | ( | caf::SRSliceProxy * | slc, |
double & | weight | ||
) | const |
Definition at line 86 of file SystShifts.cxx.
std::string ana::SystShifts::ShortName | ( | ) | const |
Brief description of component shifts, for printing to screen.
Definition at line 92 of file SystShifts.cxx.
|
staticprotected |
The next unused ID.
Definition at line 58 of file SystShifts.h.
|
protected |
Definition at line 56 of file SystShifts.h.
|
protected |
Definition at line 54 of file SystShifts.h.