1 #include "nueTPCPileUpSystematics.hxx" 2 #include "ND280AnalysisUtils.hxx" 8 _fgd1 =
new BinnedParams(
"nueFGD1_TPC_PileUp",BinnedParams::k1D_SYMMETRIC);
9 _fgd2 =
new BinnedParams(
"nueFGD2_TPC_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;
44 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.
bool GetBinValues(Float_t value, Float_t &mean, Float_t &sigma)
Gets the bin values for a 1D source.
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)
Int_t GetNBins()
Get the number of bins.