4 #ifndef STJMCPARTICLELIST_H
5 #define STJMCPARTICLELIST_H
32 typedef std::vector<StjMCParticle> StjMCParticleList;
36 if(v1.runNumber != v2.runNumber)
return false;
37 if(v1.eventId != v2.eventId)
return false;
38 if(v1.mcparticleId != v2.mcparticleId)
return false;
39 if(v1.pdg != v2.pdg)
return false;
40 if(v1.firstMotherId != v2.firstMotherId)
return false;
41 if(v1.lastMotherId != v2.lastMotherId)
return false;
42 if(v1.firstDaughterId != v2.firstDaughterId)
return false;
43 if(v1.lastDaughterId != v2.lastDaughterId)
return false;
44 if(v1.pt != v2.pt)
return false;
45 if(v1.eta != v2.eta)
return false;
46 if(v1.phi != v2.phi)
return false;
47 if(v1.m != v2.m)
return false;
48 if(v1.e != v2.e)
return false;
49 if(v1.vertexZ != v2.vertexZ)
return false;
58 inline bool operator==(
const StjMCParticleList& v1,
const StjMCParticleList& v2){
59 if(v1.size() != v2.size())
return false;
60 for(
size_t i = 0; i < v1.size(); ++i)
if(v1[i] != v2[i])
return false;
64 inline std::ostream& operator<<(std::ostream& out,
const StjMCParticle& v)
66 out <<
"mcparticleId: " << v.mcparticleId <<
", pt: " << v.pt <<
", .... ";
70 inline std::ostream& operator<<(std::ostream& out,
const StjMCParticleList& v)
72 out <<
"MCParticleList size: " << v.size();
76 #endif // STJMCPARTICLELIST_H