CMS 3D CMS Logo

Functions
HBHERecHit.cc File Reference
#include "DataFormats/HcalRecHit/interface/HBHERecHit.h"
#include "DataFormats/HcalRecHit/interface/HBHERecHitAuxSetter.h"
#include "DataFormats/HcalRecHit/interface/CaloRecHitAuxSetter.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 26 of file HBHERecHit.cc.

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

26  {
27  s << hit.id() << ": " << hit.energy() << " GeV";
28  if (hit.eraw() > -0.9e21) {
29  s << ", eraw=" << hit.eraw() << " GeV";
30  }
31  if (hit.eaux() > -0.9e21) {
32  s << ", eaux=" << hit.eaux() << " GeV";
33  }
34  if(hit.time() > -998) {
35  s << ", t= " << hit.time() << " to " << hit.timeFalling() << " ns";
36  }
37  return s;
38 }
HcalDetId id() const
get the id
Definition: HBHERecHit.h:25
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:23
float eraw() const
Definition: HBHERecHit.h:31
float eaux() const
Definition: HBHERecHit.h:34