9 #include "StjFourVecList.h"
27 StjFourVecList fourVecList;
31 typedef std::vector<StjJet> StjJetList;
33 inline bool operator==(
const StjJet& v1,
const StjJet& v2)
35 if(v1.runNumber != v2.runNumber)
return false;
36 if(v1.eventId != v2.eventId)
return false;
37 if(v1.jetId != v2.jetId)
return false;
38 if(fabs(v1.pt - v2.pt ) > 0.0001*fabs( v1.pt ))
return false;
39 if(fabs(v1.eta - v2.eta ) > 0.0001*fabs( v1.eta ))
return false;
40 if(fabs(v1.phi - v2.phi ) > 0.0001*fabs( v1.phi ))
return false;
41 if(fabs(v1.m - v2.m ) > 0.0001*fabs( v1.m ))
return false;
42 if(fabs(v1.neuRt - v2.neuRt ) > 0.0001*fabs( v1.neuRt ))
return false;
43 if(v1.fourVecList != v2.fourVecList)
return false;
47 inline bool operator!=(
const StjJet& v1,
const StjJet& v2)
52 inline bool operator==(
const StjJetList& v1,
const StjJetList& v2){
53 if(v1.size() != v2.size())
return false;
54 for(
size_t i = 0; i < v1.size(); ++i)
if(v1[i] != v2[i])
return false;
58 inline std::ostream& operator<<(std::ostream& out,
const StjJet& v)
60 out <<
"jetId: " << v.jetId <<
", pt: " << v.pt <<
", .... ";
64 inline std::ostream& operator<<(std::ostream& out,
const StjJetList& v)
66 out <<
"JetList size: " << v.size();
70 #endif // STJJETLIST_H