4 #ifndef STJFOURVECLIST_H
5 #define STJFOURVECLIST_H
30 typedef std::vector<StjFourVec> StjFourVecList;
34 if(v1.runNumber != v2.runNumber)
return false;
35 if(v1.eventId != v2.eventId)
return false;
36 if(v1.fourvecId != v2.fourvecId)
return false;
37 if(v1.type != v2.type)
return false;
38 if(v1.detectorId != v2.detectorId)
return false;
39 if(v1.trackId != v2.trackId)
return false;
40 if(v1.towerId != v2.towerId)
return false;
41 if(v1.mcparticleId != v2.mcparticleId)
return false;
42 if(v1.pt != v2.pt)
return false;
43 if(v1.eta != v2.eta)
return false;
44 if(v1.phi != v2.phi)
return false;
45 if(v1.m != v2.m)
return false;
54 inline bool operator==(
const StjFourVecList& v1,
const StjFourVecList& v2){
55 if(v1.size() != v2.size())
return false;
56 for(
size_t i = 0; i < v1.size(); ++i)
if(v1[i] != v2[i])
return false;
60 inline std::ostream& operator<<(std::ostream& out,
const StjFourVec& v)
62 out <<
"fourvecId: " << v.fourvecId <<
", pt: " << v.pt <<
", .... ";
66 inline std::ostream& operator<<(std::ostream& out,
const StjFourVecList& v)
68 out <<
"FourVecList size: " << v.size();
72 #endif // STJFOURVECLIST_H