1 #include "P0DVetoSystematics.hxx" 2 #include "ND280AnalysisUtils.hxx" 9 sprintf(dirname,
"%s/data",getenv(
"PSYCHESYSTEMATICSROOT"));
12 _p0d->SetType(BinnedParams::k1D_SYMMETRIC);
13 _p0d->SetName(
"P0DVeto");
29 if( box.
DetectorFV != SubDetId::kP0D)
return eventWeight;
39 Float_t veto_corr_error;
42 if(!_p0d->GetBinValues(runPeriod, veto_corr, veto_corr_error, index))
return eventWeight;
46 eventWeight.Correction = 1 - veto_corr;
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)