CMS 3D CMS Logo

Classes | Functions

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/DataFormats/CaloRecHit/interface/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().

                                                             {
  s << hit.detid().rawId() << ", " << hit.energy() << " GeV, " << hit.time() << " ns ";
  s << " flags=0x" << std::hex << hit.flags() << std::dec << " ";
  s << " aux=0x" << std::hex << hit.aux() << std::dec << " ";
  return s;
}