CMS 3D CMS Logo

Functions
CaloRecHit.cc File Reference
#include "DataFormats/CaloRecHit/interface/CaloRecHit.h"

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 3 of file CaloRecHit.cc.

References CaloRecHit::aux(), TauDecayModes::dec, CaloRecHit::detid(), CaloRecHit::energy(), CaloRecHit::flags(), DetId::rawId(), alignCSCRings::s, and CaloRecHit::time().

3  {
4  s << hit.detid().rawId() << ", " << hit.energy() << " GeV, " << hit.time() << " ns ";
5  s << " flags=0x" << std::hex << hit.flags() << std::dec << " ";
6  s << " aux=0x" << std::hex << hit.aux() << std::dec << " ";
7  return s;
8 }
constexpr float energy() const
Definition: CaloRecHit.h:31
constexpr const DetId & detid() const
Definition: CaloRecHit.h:35
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:47
constexpr float time() const
Definition: CaloRecHit.h:33
constexpr uint32_t aux() const
Definition: CaloRecHit.h:52
constexpr uint32_t flags() const
Definition: CaloRecHit.h:36