Uncertainty in the scale of a single component of the spectrum. More...
#include <SystComponentScale.h>
Public Types | |
enum | ESystType { kLinear, kExponential } |
Public Member Functions | |
SystComponentScale (const std::string &shortName, const std::string &latexName, const Cut &cut, double oneSigma, ESystType type=kExponential) | |
~SystComponentScale () | |
double | OneSigmaScale () const |
Scaling this component between 1/(1+x) and (1+x) is the 1-sigma range. More... | |
const Cut & | GetCut () const |
void | Shift (double sigma, caf::SRSliceProxy *slc, double &weight) const override |
Perform the systematic shift. More... | |
virtual void | SaveTo (TDirectory *dir) const |
Public Member Functions inherited from ana::ISyst | |
ISyst (const std::string &shortName, const std::string &latexName, bool applyPenalty=true, double min=-3, double max=+3) | |
ISyst (const ISyst &)=delete | |
ISyst (ISyst &&rhs)=delete | |
virtual | ~ISyst () |
void | operator= (const ISyst &)=delete |
void | operator= (ISyst &&)=delete |
virtual std::string | ShortName () const final |
The name printed out to the screen. More... | |
virtual std::string | LatexName () const final |
The name used on plots (ROOT's TLatex syntax) More... | |
virtual double | Penalty (double x) const |
virtual bool | ApplyPenalty () const |
Should a penalty be applied for this shift? More... | |
virtual double | Min () const |
Return the min/max value for this syst. More... | |
virtual double | Max () const |
virtual int | PredInterpMaxNSigma () const |
Static Public Member Functions | |
static std::unique_ptr < SystComponentScale > | LoadFrom (TDirectory *dir) |
Protected Attributes | |
Cut | fCut |
double | fOneSigma |
ESystType | fType |
Uncertainty in the scale of a single component of the spectrum.
Definition at line 9 of file SystComponentScale.h.
|
inline |
cut | Select the component to be scaled |
Definition at line 15 of file SystComponentScale.h.
ana::SystComponentScale::~SystComponentScale | ( | ) |
Definition at line 12 of file SystComponentScale.cxx.
|
inline |
Definition at line 30 of file SystComponentScale.h.
|
static |
Definition at line 33 of file SystComponentScale.cxx.
|
inline |
Scaling this component between 1/(1+x) and (1+x) is the 1-sigma range.
Definition at line 28 of file SystComponentScale.h.
|
inlinevirtual |
Definition at line 39 of file SystComponentScale.h.
|
overridevirtual |
Perform the systematic shift.
sigma | Number of sigma to shift record by |
sr | The record to inspect and alter |
weight | Scale this weight for reweighting systematics |
Implements ana::ISyst.
Definition at line 17 of file SystComponentScale.cxx.
|
protected |
Definition at line 42 of file SystComponentScale.h.
|
protected |
Definition at line 43 of file SystComponentScale.h.
|
protected |
Definition at line 44 of file SystComponentScale.h.