CMS 3D CMS Logo

Classes | Functions
HBHERecHit.h File Reference
#include <vector>
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "DataFormats/CaloRecHit/interface/CaloRecHit.h"

Go to the source code of this file.

Classes

class  HBHERecHit
 

Functions

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

Function Documentation

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

Definition at line 16 of file HBHERecHit.cc.

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

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