CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
CaloRecHit.h File Reference
#include "DataFormats/DetId/interface/DetId.h"
#include <ostream>

Go to the source code of this file.

Classes

class  CaloRecHit
 

Functions

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

Function Documentation

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

Definition at line 36 of file CaloRecHit.cc.

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

36  {
37  s << hit.detid().rawId() << ", " << hit.energy() << " GeV, " << hit.time() << " ns ";
38  s << " flags=0x" << std::hex << hit.flags() << std::dec << " ";
39  s << " aux=0x" << std::hex << hit.aux() << std::dec << " ";
40  return s;
41 }
uint32_t aux() const
Definition: CaloRecHit.h:28
const DetId & detid() const
Definition: CaloRecHit.h:22
float time() const
Definition: CaloRecHit.h:21
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
float energy() const
Definition: CaloRecHit.h:19
uint32_t flags() const
Definition: CaloRecHit.h:23