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 38 of file CaloRecHit.cc.

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

38  {
39  s << hit.detid().rawId() << ", " << hit.energy() << " GeV, " << hit.time() << " ns ";
40  s << " flags=0x" << std::hex << hit.flags() << std::dec << " ";
41  s << " aux=0x" << std::hex << hit.aux() << std::dec << " ";
42  return s;
43 }
uint32_t aux() const
Definition: CaloRecHit.h:27
const DetId & detid() const
Definition: CaloRecHit.h:21
float time() const
Definition: CaloRecHit.h:20
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:22
string s
Definition: asciidump.py:422