1 #ifndef SystematicBase_h 2 #define SystematicBase_h 4 #include "CoreDataClasses.hxx" 5 #include "ToyVariations.hxx" 6 #include "SelectionBase.hxx" 8 #include "SystBoxB.hxx" 9 #include "CoreUtils.hxx" 102 virtual void Initialize(Int_t nsel, Int_t isel, Int_t nbranch, Int_t nevents);
134 Int_t _systBoxesNSel;
135 Int_t _systBoxesNBranches[NMAXSELECTIONS];
136 Int_t _systBoxesNEvents[NMAXSELECTIONS][NMAXBRANCHES];
void SetEnabled(bool ena)
Set the enable bit.
Int_t _index
The index of this systematic (needed by SystematicsManager);.
UInt_t _nParameters
the number of systematic parameters
Int_t GetIndex() const
Return the index of this systematic.
TypeEnum Type() const
Return the type of this systematic.
SystBoxB * GetSystBox(const AnaEventC &event, Int_t isel=0, Int_t ibranch=0) const
Get the SystBox corresponding to a selection, branch and event.
void SetNParameters(int N)
Set the number of systematic parameters associated to this systematic.
virtual void Initialize(Int_t nsel, Int_t isel, Int_t nbranch, Int_t nevents)
Create the array of SystBox.
PDFEnum _PDF
The PDF use for the systematic parameter scan.
PDFEnum PDF() const
Return the PDF of this systematic.
TypeEnum
Enumerator describing the values that _type member can take.
virtual void FinalizeEvent(const AnaEventC &event)
Delete the SystBox for this event.
PDFEnum
Enumerator describing the values that _PDF member can take.
void SetName(const std::string &name)
Set the name of this systematic.
virtual ~SystematicBase()
Everyone should have a destructor.
bool IsEnabled() const
Returns the enable bit.
TypeEnum _type
The type of this systematic (variation, weight or flux)
void SetType(TypeEnum type)
Set the type of this systematic.
void SetIndex(Int_t index)
Set the index of this systematic.
const std::string & Name() const
Return the name of this systematic.
bool _enabled
Is this systematic enabled ?
std::string ConvertType()
Return the type of this systematic.
std::string _name
The name of this systematic.
SystBoxB **** _systBoxes
----—— Relevant objects for this systematic ------------——
UInt_t GetNParameters() const
Returns the number of systematic parameters associated to this systematic.
void SetPDF(PDFEnum PDF)
Set the PDF of this systematic.
virtual const char * GetName() const
Return the name of this systematic. This overrides the TObject::GetName() interface.
SystematicBase()
Create the systematic, with one parameter.
std::string ConvertPDF()
Return the PDF of this systematic.