1 #include "nueECalPileUpSystematics.hxx" 2 #include "ND280AnalysisUtils.hxx" 8 _fgd1 =
new BinnedParams(
"nueFGD1_upECal_PileUp",BinnedParams::k1D_SYMMETRIC);
9 _fgd2 =
new BinnedParams(
"nueFGD2_upECal_PileUp",BinnedParams::k1D_SYMMETRIC);
34 if(!_fgd1->GetBinValues(runPeriod, pileup, pileup_error, index))
return eventWeight;
37 if(!_fgd2->GetBinValues(runPeriod, pileup, pileup_error, index))
return eventWeight;
39 else return eventWeight;
43 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
SubDetId_h DetectorFV
Indicate the FV we are interested in.
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 ...)
ToyVariations * GetToyVariations(UInt_t index) const
returns the variations for a given systematic (index)
Weight_h ComputeWeight(const ToyExperiment &toy, const AnaEventC &event, const ToyBoxB &box)