CMS 3D CMS Logo

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 15 of file PCaloHit.cc.

References TauDecayModes::dec, PCaloHit::depth(), PCaloHit::energyEM(), PCaloHit::energyHad(), PCaloHit::geantTrackId(), PCaloHit::id(), EcalTangentSkim_cfg::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 }
double time() const
Definition: PCaloHit.h:30
double energyEM() const
Definition: PCaloHit.h:25
uint16_t depth() const
Definition: PCaloHit.h:43
double energyHad() const
Definition: PCaloHit.h:26
int geantTrackId() const
Definition: PCaloHit.h:33
unsigned int id() const
Definition: PCaloHit.h:37