|
1 #ifndef SIMPLEEVENT_HH_
2 #define SIMPLEEVENT_HH_
4 #include "PythiaJetGun.hh"
5 #include "geners/ClassId.hh"
14 std::vector<PythiaJetGun::Particle> jetParticles;
17 { return parton == r.parton && jetParticles == r.jetParticles;}
20 { return !(* this == r);}
23 rk::P4 jetSum() const;
26 rk::P4 chargedSum() const;
32 return jetSum().pt() < r.jetSum().pt();
36 return jetSum().pt() > r.jetSum().pt();
40 inline gs::ClassId classId() const { return gs::ClassId(* this);}
41 bool write(std::ostream& of) const;
44 static inline const char* classname() { return "SimulatedJet";}
45 static inline unsigned version() { return 1;}
46 static void restore( const gs::ClassId& id, std::istream& in,
58 { return !(* this == r);}
63 rk::P4 closestJet( double eta, double phi) const;
67 unsigned closestJetNumber( unsigned thisJetNumber) const;
73 inline gs::ClassId classId() const { return gs::ClassId(* this);}
74 bool write(std::ostream& of) const;
77 static inline const char* classname() { return "SimpleEvent";}
78 static inline unsigned version() { return 1;}
79 static void restore( const gs::ClassId& id, std::istream& in,
90 double r, double *phi);
92 #endif // SIMPLEEVENT_HH_
|