CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
constexpr HcalDetId id() const
get the id
Definition: HBHERecHit.h:41
constexpr float time() const
Definition: CaloRecHit.h:31
constexpr float eaux() const
Definition: HBHERecHit.h:50
constexpr float eraw() const
Definition: HBHERecHit.h:47
constexpr float timeFalling() const
get the hit falling time
Definition: HBHERecHit.h:38