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 18 of file HBHERecHit.cc.

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

18  {
19  s << hit.id() << ": " << hit.energy() << " GeV";
20  if (hit.eraw() > -0.9e21) {
21  s << ", eraw=" << hit.eraw() << " GeV";
22  }
23  if (hit.eaux() > -0.9e21) {
24  s << ", eaux=" << hit.eaux() << " GeV";
25  }
26  if(hit.time() > -998) {
27  s << ", t= " << hit.time() << " to " << hit.timeFalling() << " ns";
28  }
29  return s;
30 }
constexpr float energy() const
Definition: CaloRecHit.h:31
HcalDetId id() const
get the id
Definition: HBHERecHit.h:42
constexpr float time() const
Definition: CaloRecHit.h:33
float timeFalling() const
get the hit falling time
Definition: HBHERecHit.h:39
float eraw() const
Definition: HBHERecHit.h:48
float eaux() const
Definition: HBHERecHit.h:51