CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
PCaloHit.cc File Reference
#include "SimDataFormats/CaloHit/interface/PCaloHit.h"
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 17 of file PCaloHit.cc.

References PCaloHit::depth(), PCaloHit::energyEM(), PCaloHit::energyHad(), PCaloHit::geantTrackId(), PCaloHit::id(), 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 }
double time() const
Definition: PCaloHit.h:34
double energyEM() const
Definition: PCaloHit.h:30
uint16_t depth() const
Definition: PCaloHit.h:45
double energyHad() const
Definition: PCaloHit.h:31
int geantTrackId() const
Definition: PCaloHit.h:37
unsigned int id() const
Definition: PCaloHit.h:40