1 #include "P0dMassSystematics.hxx" 2 #include "GeometryManager.hxx" 3 #include "ND280AnalysisUtils.hxx" 4 #include "BasicUtils.hxx" 5 #include "DataClasses.hxx" 6 #include "ToyBoxTracker.hxx" 16 sprintf(dirname,
"%s/data",getenv(
"P0DNUMUCCANALYSISROOT"));
22 GetParametersForBin(0,corr,err);
25 GetParametersForBin(1,corr,err);
27 brassMass_corr = corr;
28 GetParametersForBin(2,corr,err);
30 waterMass_corr = corr;
31 GetParametersForBin(3,corr,err);
33 otherMass_corr = corr;
56 TGeoManager* geom = ND::hgman().GeoManager();
61 geom = ND::hgman().GeoManager();
67 if (material ==
"Water"){
69 corr = waterMass_corr;
71 }
else if (material ==
"Brass"){
73 corr = brassMass_corr;
75 }
else if (material ==
"Lead"){
81 corr = otherMass_corr;
96 eventWeight.Correction *= (corr);
AnaTrueVertexB * TrueVertex
Float_t * Variations
the vector of Variations, one for each of the systematic parameters
Representation of a true Monte Carlo vertex.
void SetType(TypeEnum type)
Set the type.
void SetName(const std::string &name)
Set the name.
AnaVertexB * Vertex
For storing the reconstructed vertex.
Float_t Position[4]
The position the true interaction happened at.
Int_t _index
Index of the step in the selection.
void Read(const std::string &inputDirName, const std::string &extension="")
Read from a file the systematic source values.
ToyVariations * GetToyVariations(UInt_t index) const
returns the variations for a given systematic (index)
bool InDetVolume(SubDetId::SubDetEnum det, const Float_t *pos)
Weight_h ComputeWeight(const ToyExperiment &toy, const AnaEventC &event, const ToyBoxB &box)
bool LoadGeometry(const std::string &file="", Int_t geomID=-1, const std::string &geomDir="")
Load the TGeoManager from the input root file. Returns true when the new geometry was loaded...