1 #include "PileUpSystematics.hxx" 2 #include "ND280AnalysisUtils.hxx" 120 _fgd1 =
new BinnedParams(
"PileUpFGD1",BinnedParams::k1D_SYMMETRIC, versionUtils::Extension());
121 _fgd2 =
new BinnedParams(
"PileUpFGD2",BinnedParams::k1D_SYMMETRIC, versionUtils::Extension());
137 if (det != SubDetId::kFGD1 && det != SubDetId::kFGD2)
return eventWeight;
147 Float_t pileup_error;
149 if (det == SubDetId::kFGD1){
150 if(!_fgd1->GetBinValues(runPeriod, pileup, pileup_error, index))
return eventWeight;
152 else if(det == SubDetId::kFGD2){
153 if(!_fgd2->GetBinValues(runPeriod, pileup, pileup_error, index))
return eventWeight;
155 else return eventWeight;
163 eventWeight.Correction = 1 - pileup;
Int_t _index
The index of this systematic (needed by SystematicsManager);.
Float_t * Variations
the vector of Variations, one for each of the systematic parameters
Weight_h ComputeWeight(const ToyExperiment &, const AnaEventC &, const ToyBoxB &)
void SetNParameters(int N)
Set the number of systematic parameters associated to this systematic.
int GetRunPeriod(int run, int subrun=-1)
Returns the run period (sequentially: 0,1,2,3,4,5 ...)
Int_t SuccessfulBranch
The branch that is successful for this toy in the selection this ToyBox belongs to.
ToyVariations * GetToyVariations(UInt_t index) const
returns the variations for a given systematic (index)
SubDetId_h GetDetectorFV(Int_t ibranch=0) const
Get the detector in which the Fiducial Volume is defined.