CMS 3D CMS Logo

Classes | Functions
HFRecHit.h File Reference
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/CaloRecHit/interface/CaloRecHit.h"

Go to the source code of this file.

Classes

class  HFRecHit
 

Functions

std::ostream & operator<< (std::ostream &s, const HFRecHit &hit)
 

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const HFRecHit hit 
)

Definition at line 18 of file HFRecHit.cc.

References CaloRecHit::energy(), HFRecHit::id(), alignCSCRings::s, CaloRecHit::time(), and HFRecHit::timeFalling().

18  {
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 }
float timeFalling() const
Definition: HFRecHit.h:22
float time() const
Definition: CaloRecHit.h:19
float energy() const
Definition: CaloRecHit.h:17
HcalDetId id() const
Definition: HFRecHit.h:23