CMS 3D CMS Logo

HFRecHit.cc
Go to the documentation of this file.
2 
3 
5  CaloRecHit(),
6  timeFalling_(0.f),
7  auxHF_(0)
8 {
9 }
10 
11 HFRecHit::HFRecHit(const HcalDetId& id, float energy, float timeRising, float timeFalling) :
12  CaloRecHit(id,energy,timeRising),
13  timeFalling_(timeFalling),
14  auxHF_(0)
15 {
16 }
17 
18 std::ostream& operator<<(std::ostream& s, const HFRecHit& hit) {
19  s << hit.id() << ": " << hit.energy() << " GeV";
20  if(hit.time() > -998) {
21  s << ", t= " << hit.time() << " to " << hit.timeFalling() << " ns";
22  }
23  return s;
24 }
25 
float timeFalling() const
Definition: HFRecHit.h:22
float time() const
Definition: CaloRecHit.h:19
float energy() const
Definition: CaloRecHit.h:17
HFRecHit()
Definition: HFRecHit.cc:4
double f[11][100]
uint32_t auxHF_
Definition: HFRecHit.h:31
std::ostream & operator<<(std::ostream &s, const HFRecHit &hit)
Definition: HFRecHit.cc:18
float timeFalling_
Definition: HFRecHit.h:30
HcalDetId id() const
Definition: HFRecHit.h:23