G4ReweightUtils.h
Go to the documentation of this file.
1 #ifndef G4REWEIGHTUTILS_h
2 #define G4REWEIGHTUTILS_h
3 
4 #include <vector>
7 #include "geant4reweight/src/ReweightBase/G4ReweightTraj.hh"
8 #include "geant4reweight/src/ReweightBase/G4MultiReweighter.hh"
9 
10 namespace protoana {
11  namespace G4ReweightUtils {
12 
13  //Function to create reweightable object
14  bool CreateRWTraj(const simb::MCParticle & part,
15  const sim::ParticleList & plist,
17  G4ReweightTraj * theTraj);
18 
19  std::vector<G4ReweightTraj *> CreateNRWTrajs(
20  const simb::MCParticle & part,
21  const sim::ParticleList & plist,
22  art::ServiceHandle < geo::Geometry > geo_serv, int event,
23  std::string material_name = "LAr",
24  bool fVerbose=false);
25 
26  std::vector<std::vector<G4ReweightTraj *>> BuildHierarchy(
27  int ID, int PDG,
28  const sim::ParticleList & plist,
29  art::ServiceHandle<geo::Geometry> geo_serv, int event,
30  std::string material_name = "LAr",
31  bool fVerbose=false);
32 
34  const std::vector<G4ReweightTraj *> & trajs, G4MultiReweighter & rw);
35 
36  std::pair<double, double> GetNTrajPMSigmaWeights(
37  const std::vector<G4ReweightTraj *> & trajs, G4MultiReweighter & rw,
38  size_t iPar);
39  }
40 }
41 
42 #endif
std::string string
Definition: nybbler.cc:12
unsigned int ID
double GetNTrajWeightFromSetPars(const std::vector< G4ReweightTraj * > &trajs, G4MultiReweighter &rw)
art framework interface to geometry description
const uint PDG
Definition: qregexp.cpp:140
bool CreateRWTraj(const simb::MCParticle &part, const sim::ParticleList &plist, art::ServiceHandle< geo::Geometry > geo_serv, int event, G4ReweightTraj *theTraj)
std::vector< G4ReweightTraj * > CreateNRWTrajs(const simb::MCParticle &part, const sim::ParticleList &plist, art::ServiceHandle< geo::Geometry > geo_serv, int event, std::string material_name="LAr", bool fVerbose=false)
std::pair< double, double > GetNTrajPMSigmaWeights(const std::vector< G4ReweightTraj * > &trajs, G4MultiReweighter &rw, size_t iPar)
std::vector< std::vector< G4ReweightTraj * > > BuildHierarchy(int ID, int PDG, const sim::ParticleList &plist, art::ServiceHandle< geo::Geometry > geo_serv, int event, std::string material_name="LAr", bool fVerbose=false)
Event finding and building.