CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ZDCRecHit.cc
Go to the documentation of this file.
2 
3 ZDCRecHit::ZDCRecHit() : CaloRecHit(), lowGainEnergy_() {}
4 
5 ZDCRecHit::ZDCRecHit(const HcalZDCDetId& id, float energy, float time, float lowGainEnergy)
6  : CaloRecHit(id, energy, time), lowGainEnergy_(lowGainEnergy) {}
7 
8 std::ostream& operator<<(std::ostream& s, const ZDCRecHit& hit) {
9  return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
10 }
constexpr float energy() const
Definition: CaloRecHit.h:29
ZDCRecHit()
Definition: ZDCRecHit.cc:3
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
constexpr float time() const
Definition: CaloRecHit.h:31
HcalZDCDetId id() const
get the id
Definition: ZDCRecHit.h:18