CMS 3D CMS Logo

ZDCRecHit.cc
Go to the documentation of this file.
2 
3 
4 ZDCRecHit::ZDCRecHit() : CaloRecHit(), lowGainEnergy_() {
5 }
6 
7 ZDCRecHit::ZDCRecHit(const HcalZDCDetId& id, float energy, float time, float lowGainEnergy) :
8  CaloRecHit(id,energy,time),
9  lowGainEnergy_(lowGainEnergy)
10  {
11 }
12 
13 std::ostream& operator<<(std::ostream& s, const ZDCRecHit& hit) {
14  return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
15 }
16 
17 
constexpr float energy() const
Definition: CaloRecHit.h:31
float lowGainEnergy_
Definition: ZDCRecHit.h:21
ZDCRecHit()
Definition: ZDCRecHit.cc:4
constexpr float time() const
Definition: CaloRecHit.h:33
float lowGainEnergy() const
Definition: ZDCRecHit.h:21
HcalZDCDetId id() const
get the id
Definition: ZDCRecHit.h:19
std::ostream & operator<<(std::ostream &s, const ZDCRecHit &hit)
Definition: ZDCRecHit.cc:13