CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
HBHERecHit.cc File Reference
#include "DataFormats/HcalRecHit/interface/HBHERecHit.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 15 of file HBHERecHit.cc.

References HBHERecHit::eaux(), CaloRecHit::energy(), HBHERecHit::eraw(), HBHERecHit::id(), alignCSCRings::s, CaloRecHit::time(), and HBHERecHit::timeFalling().

15  {
16  s << hit.id() << ": " << hit.energy() << " GeV";
17  if (hit.eraw() > -0.9e21) {
18  s << ", eraw=" << hit.eraw() << " GeV";
19  }
20  if (hit.eaux() > -0.9e21) {
21  s << ", eaux=" << hit.eaux() << " GeV";
22  }
23  if(hit.time() > -998) {
24  s << ", t= " << hit.time() << " to " << hit.timeFalling() << " ns";
25  }
26  return s;
27 }
HcalDetId id() const
get the id
Definition: HBHERecHit.h:23
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
float eaux() const
Definition: HBHERecHit.h:29