1 #ifndef Validation_EventGenerator_HepMCValidationHelper 2 #define Validation_EventGenerator_HepMCValidationHelper 4 #include <HepMC/GenEvent.h> 6 #include "TLorentzVector.h" 11 return a1.E() >
a2.E();
16 return a->momentum().perp() >
b->momentum().perp();
21 return lhs->pt() > rhs->pt();
26 return a->momentum().e() >
b->momentum().e();
31 const HepMC::FourVector& amom =
a->momentum();
32 const HepMC::FourVector& bmom =
b->momentum();
33 double rapa = 0.5 *
std::log((amom.e() + amom.z()) / (amom.e() - amom.z()));
34 double rapb = 0.5 *
std::log((bmom.e() + bmom.z()) / (bmom.e() - bmom.z()));
40 return a->momentum().eta() >
b->momentum().eta();
57 const std::vector<const HepMC::GenParticle*>&
all,
59 std::vector<const HepMC::GenParticle*>&
photons);
66 std::vector<const HepMC::GenParticle*>&
photons);
83 std::vector<const HepMC::GenParticle*>& pruned);
bool isTau(const HepMC::GenParticle *part)
void removeIsolatedLeptons(const HepMC::GenEvent *all, double deltaR, double sumPt, std::vector< const HepMC::GenParticle *> &pruned)
bool sortByPt(const HepMC::GenParticle *a, const HepMC::GenParticle *b)
bool isChargedLepton(const HepMC::GenParticle *part)
bool sortByPtRef(const T lhs, const T rhs)
bool sortByPseudoRapidity(const HepMC::GenParticle *a, const HepMC::GenParticle *b)
void findFSRPhotons(const std::vector< const HepMC::GenParticle *> &leptons, const std::vector< const HepMC::GenParticle *> &all, double deltaR, std::vector< const HepMC::GenParticle *> &photons)
void findDescendents(const HepMC::GenParticle *a, std::vector< const HepMC::GenParticle *> &descendents)
void allVisibleParticles(const HepMC::GenEvent *all, std::vector< const HepMC::GenParticle *> &visible)
bool sortByRapidity(const HepMC::GenParticle *a, const HepMC::GenParticle *b)
TLorentzVector genMet(const HepMC::GenEvent *all, double etamin=-9999., double etamax=9999.)
void allStatus3(const HepMC::GenEvent *all, std::vector< const HepMC::GenParticle *> &status3)
bool isNeutrino(const HepMC::GenParticle *part)
bool sortByE(const HepMC::GenParticle *a, const HepMC::GenParticle *b)
bool GreaterByE(const T &a1, const T &a2)
void allStatus1(const HepMC::GenEvent *all, std::vector< const HepMC::GenParticle *> &status1)
void allStatus2(const HepMC::GenEvent *all, std::vector< const HepMC::GenParticle *> &status2)