CMS 3D CMS Logo

Functions
TotemG4Hit.cc File Reference
#include "SimG4CMS/Forward/interface/TotemG4Hit.h"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const TotemG4Hit &hit)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const TotemG4Hit hit 
)

Definition at line 179 of file TotemG4Hit.cc.

179  {
180  os << " Data of this TotemG4Hit are:\n"
181  << " Time slice ID: " << hit.getTimeSliceID() << "\n"
182  << " EnergyDeposit = " << hit.getEnergyLoss() << "\n"
183  << " Energy of primary particle (ID = " << hit.getTrackID() << ") = " << hit.getIncidentEnergy() << " (MeV)"
184  << "\n"
185  << " Entry point in Totem unit number " << hit.getUnitID() << " is: " << hit.getEntry() << " (mm)"
186  << "\n"
187  << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
188  return os;
189 }
hit
Definition: SiStripHitEffFromCalibTree.cc:88