CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
HBHERecHit.h File Reference
#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 13 of file HBHERecHit.cc.

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

13  {
14  s << hit.id() << ": " << hit.energy() << " GeV";
15  if(hit.time() > -998) {
16  s << ", t= " << hit.time() << " to " << hit.timeFalling() << " ns";
17  }
18  return s;
19 }
HcalDetId id() const
Definition: HBHERecHit.h:23
float time() const
Definition: CaloRecHit.h:19
float energy() const
Definition: CaloRecHit.h:17
float timeFalling() const
Definition: HBHERecHit.h:22