CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
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 15 of file PCaloHit.cc.

References TauDecayModes::dec, PCaloHit::depth(), PCaloHit::energyEM(), PCaloHit::energyHad(), PCaloHit::geantTrackId(), PCaloHit::id(), class-composition::o, and PCaloHit::time().

15  {
16  o << "0x" << std::hex << hit.id() << std::dec << ": Energy (EM) " << hit.energyEM() << " GeV "
17  << ": Energy (Had) " << hit.energyHad() << " GeV "
18  << " Tof " << hit.time() << " ns "
19  << " Geant track #" << hit.geantTrackId() << " Encoded depth " << hit.depth();
20 
21  return o;
22 }
unsigned int id