CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HFRecHit.cc
Go to the documentation of this file.
2 
3 
5 }
6 
7 HFRecHit::HFRecHit(const HcalDetId& id, float energy, float timeRising, float timeFalling) :
8  CaloRecHit(id,energy,timeRising),
9  timeFalling_(timeFalling)
10 {
11 }
12 
13 std::ostream& operator<<(std::ostream& s, const HFRecHit& hit) {
14  s << hit.id() << ": " << hit.energy() << " GeV";
15  if(hit.time() > -998) {
16  s << ", t= " << hit.time() << " to " << hit.timeFalling() << " ns";
17  }
18  return s;
19 }
20 
float timeFalling() const
Definition: HFRecHit.h:22
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
float time() const
Definition: CaloRecHit.h:19
float energy() const
Definition: CaloRecHit.h:17
HFRecHit()
Definition: HFRecHit.cc:4
HcalDetId id() const
Definition: HFRecHit.h:23