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

◆ operator<<()

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

Definition at line 15 of file PCaloHit.cc.

References TauDecayModes::dec, hit::id, and EcalTangentSkim_cfg::o.

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