File indexing completed on 2024-08-25 23:06:58
0001 #include "DataFormats/HcalRecHit/interface/ZDCRecHit.h"
0002
0003 ZDCRecHit::ZDCRecHit()
0004 : CaloRecHit(), lowGainEnergy_(), energySOIp1_(-99), ratioSOIp1_(-99), TDCtime_(-99), chargeWeightedTime_(-99) {}
0005
0006 ZDCRecHit::ZDCRecHit(const HcalZDCDetId& id, float energy, float time, float lowGainEnergy)
0007 : CaloRecHit(id, energy, time),
0008 lowGainEnergy_(lowGainEnergy),
0009 energySOIp1_(-99),
0010 ratioSOIp1_(-99),
0011 TDCtime_(-99),
0012 chargeWeightedTime_(-99) {}
0013
0014 std::ostream& operator<<(std::ostream& s, const ZDCRecHit& hit) {
0015 return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
0016 }