CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:29
constexpr const DetId & detid() const
Definition: CaloRecHit.h:33
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
constexpr float time() const
Definition: CaloRecHit.h:31
constexpr uint32_t aux() const
Definition: CaloRecHit.h:50
constexpr uint32_t flags() const
Definition: CaloRecHit.h:34