1 #include "tutorialWeightSystematics.hxx" 2 #include "ND280AnalysisUtils.hxx" 3 #include "BasicUtils.hxx" 4 #include "ToyBoxTracker.hxx" 14 _scintmass=
new BinnedParams(
"FGD1Mass", BinnedParams::k1D_SYMMETRIC,versionUtils::Extension());
20 _watermass =
new BinnedParams(
"FGD2MassWater",BinnedParams::k1D_SYMMETRIC);
64 eventWeight.Correction = 1 + _watermass_corr;
Int_t _index
The index of this systematic (needed by SystematicsManager);.
AnaTrueVertexB * TrueVertex
Float_t * Variations
the vector of Variations, one for each of the systematic parameters
Weight_h ComputeWeight(const ToyExperiment &toy, const AnaEventC &event, const ToyBoxB &box)
SubDetId_h DetectorFV
Indicate the FV we are interested in.
void SetNParameters(int N)
Set the number of systematic parameters associated to this systematic.
tutorialWeightSystematics()
Default constructor.
AnaVertexB * Vertex
For storing the reconstructed vertex.
Float_t Position[4]
The position the true interaction happened at.
Float_t _scintmass_corr
FGD mass correction and error.
ToyVariations * GetToyVariations(UInt_t index) const
returns the variations for a given systematic (index)
bool InDetVolume(SubDetId::SubDetEnum det, const Float_t *pos)
bool GetParametersForBin(Int_t index, Float_t &mean, Float_t &sigma)
Gets the bin values for a source provided the bin index.
Int_t GetNBins()
Get the number of bins.