1 #ifndef G4REWEIGHTUTILS_h 2 #define G4REWEIGHTUTILS_h 7 #include "geant4reweight/src/ReweightBase/G4ReweightTraj.hh" 8 #include "geant4reweight/src/ReweightBase/G4MultiReweighter.hh" 11 namespace G4ReweightUtils {
15 const sim::ParticleList & plist,
17 G4ReweightTraj * theTraj);
21 const sim::ParticleList & plist,
28 const sim::ParticleList & plist,
34 const std::vector<G4ReweightTraj *> & trajs, G4MultiReweighter & rw);
37 const std::vector<G4ReweightTraj *> & trajs, G4MultiReweighter & rw,
double GetNTrajWeightFromSetPars(const std::vector< G4ReweightTraj * > &trajs, G4MultiReweighter &rw)
art framework interface to geometry description
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.