4 #ifndef STJTOWERENERGYLIST_H
5 #define STJTOWERENERGYLIST_H
33 typedef std::vector<StjTowerEnergy> StjTowerEnergyList;
37 if(v1.runNumber != v2.runNumber)
return false;
38 if(v1.eventId != v2.eventId)
return false;
39 if(v1.detectorId != v2.detectorId)
return false;
40 if(v1.towerId != v2.towerId)
return false;
41 if(v1.towerR != v2.towerR)
return false;
42 if(v1.towerEta != v2.towerEta)
return false;
43 if(v1.towerPhi != v2.towerPhi)
return false;
44 if(v1.vertexX != v2.vertexX)
return false;
45 if(v1.vertexY != v2.vertexY)
return false;
46 if(v1.vertexZ != v2.vertexZ)
return false;
47 if(fabs(v1.energy - v2.energy) > 0.0001*fabs(v1.energy))
return false;
48 if(v1.adc != v2.adc)
return false;
49 if(v1.pedestal != v2.pedestal)
return false;
50 if(v1.rms != v2.rms)
return false;
51 if(v1.status != v2.status)
return false;
60 inline bool operator==(
const StjTowerEnergyList& v1,
const StjTowerEnergyList& v2){
61 if(v1.size() != v2.size())
return false;
62 for(
size_t i = 0; i < v1.size(); ++i)
if(v1[i] != v2[i])
return false;
66 inline std::ostream& operator<<(std::ostream& out,
const StjTowerEnergy& v)
68 out <<
"towerId: " << v.towerId <<
", energy: " << v.energy <<
", .... ";
72 inline std::ostream& operator<<(std::ostream& out,
const StjTowerEnergyList& v)
74 out <<
"TowerEnergyList size: " << v.size();
78 #endif // STJTOWERENERGYLIST_H