CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ZDCRecHit.cc
Go to the documentation of this file.
2 
3 
5 }
6 
7 ZDCRecHit::ZDCRecHit(const HcalZDCDetId& id, float energy, float time) :
8  CaloRecHit(id,energy,time) {
9 }
10 
11 std::ostream& operator<<(std::ostream& s, const ZDCRecHit& hit) {
12  return s << hit.id() << ": " << hit.energy() << " GeV, " << hit.time() << " ns";
13 }
14 
ZDCRecHit()
Definition: ZDCRecHit.cc:4
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
float time() const
Definition: CaloRecHit.h:20
float energy() const
Definition: CaloRecHit.h:19
HcalZDCDetId id() const
get the id
Definition: ZDCRecHit.h:21
string s
Definition: asciidump.py:422