1 #include "SystematicBase.hxx" 2 #include "MultiThread.hxx" 36 if (
_type == kVariation)
38 else if (
_type == kWeight)
40 else if (
_type == kFlux)
50 if (
_PDF == kGaussian)
52 else if (
_PDF == kUniform)
54 else if (
_PDF == kBinomial)
56 else if (
_PDF == kMultinomial)
70 uniqueID =
event.UniqueID;
90 for (Int_t i=0;i<nsel;i++){
92 _systBoxesNBranches[i]=0;
101 _systBoxesNBranches[isel]=nbranches;
102 for (Int_t j=0;j<nbranches;j++){
104 _systBoxesNEvents[isel][j]=nevents;
105 for (Int_t k= 0;k<nevents;k++)
117 uniqueID =
event.UniqueID;
126 for (Int_t isel=0;isel<_systBoxesNSel;isel++){
128 for (Int_t ibranch=0;ibranch<_systBoxesNBranches[isel];ibranch++){
UInt_t _nParameters
the number of systematic parameters
SystBoxB * GetSystBox(const AnaEventC &event, Int_t isel=0, Int_t ibranch=0) const
Get the SystBox corresponding to a selection, branch and event.
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.
virtual void FinalizeEvent(const AnaEventC &event)
Delete the SystBox for this event.
TypeEnum _type
The type of this systematic (variation, weight or flux)
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 ------------——
SystematicBase()
Create the systematic, with one parameter.
std::string ConvertPDF()
Return the PDF of this systematic.