CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/SimDataFormats/CaloHit/interface/PCaloHit.h File Reference

#include "SimDataFormats/EncodedEventId/interface/EncodedEventId.h"
#include <iosfwd>

Go to the source code of this file.

Classes

class  PCaloHit

Functions

std::ostream & operator<< (std::ostream &, const PCaloHit &)

Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const PCaloHit  
)

Definition at line 17 of file PCaloHit.cc.

References PCaloHit::depth(), PCaloHit::energyEM(), PCaloHit::energyHad(), PCaloHit::geantTrackId(), PCaloHit::id(), connectstrParser::o, and PCaloHit::time().

                                                            {
  o << "0x" <<std::hex << hit.id() << std::dec
    << ": Energy (EM) " << hit.energyEM() << " GeV "
    << ": Energy (Had) " << hit.energyHad() << " GeV "
    << " Tof " << hit.time() << " ns "
    << " Geant track #" << hit.geantTrackId()
    << " Encoded depth " << hit.depth();

  return o;
}