CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HBHERecHit.cc
Go to the documentation of this file.
2 
3 
4 HBHERecHit::HBHERecHit() : CaloRecHit(), rawEnergy_(-1.0e21) {
5 }
6 
7 HBHERecHit::HBHERecHit(const HcalDetId& id, float energy, float timeRising, float timeFalling) :
8  CaloRecHit(id,energy,timeRising),
9  timeFalling_(timeFalling),
10  rawEnergy_(-1.0e21)
11 {
12 }
13 
14 std::ostream& operator<<(std::ostream& s, const HBHERecHit& hit) {
15  s << hit.id() << ": " << hit.energy() << " GeV";
16  if (hit.eraw() > -0.9e21) {
17  s << ", eraw=" << hit.eraw() << " GeV";
18  }
19  if(hit.time() > -998) {
20  s << ", t= " << hit.time() << " to " << hit.timeFalling() << " ns";
21  }
22  return s;
23 }
24 
HcalDetId id() const
get the id
Definition: HBHERecHit.h:23
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
float timeFalling() const
get the hit falling time
Definition: HBHERecHit.h:21
float eraw() const
Definition: HBHERecHit.h:26