test
CMS 3D CMS Logo

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

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

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