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 a->momentum().e() >
b->momentum().e();
26 const HepMC::FourVector& amom =
a->momentum();
27 const HepMC::FourVector& bmom =
b->momentum();
28 double rapa = 0.5 *
std::log((amom.e() + amom.z()) / (amom.e() - amom.z()));
29 double rapb = 0.5 *
std::log((bmom.e() + bmom.z()) / (bmom.e() - bmom.z()));
35 return a->momentum().eta() >
b->momentum().eta();
52 const std::vector<const HepMC::GenParticle*>&
all,
54 std::vector<const HepMC::GenParticle*>&
photons);
61 std::vector<const HepMC::GenParticle*>&
photons);
78 std::vector<const HepMC::GenParticle*>& pruned);