CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Definition at line 185 of file TotemG4Hit.cc.

References TotemG4Hit::getEnergyLoss(), TotemG4Hit::getEntry(), TotemG4Hit::getIncidentEnergy(), TotemG4Hit::getTimeSliceID(), TotemG4Hit::getTrackID(), and TotemG4Hit::getUnitID().

185  {
186  os << " Data of this TotemG4Hit are:\n"
187  << " Time slice ID: " << hit.getTimeSliceID() << "\n"
188  << " EnergyDeposit = " << hit.getEnergyLoss() << "\n"
189  << " Energy of primary particle (ID = " << hit.getTrackID()
190  << ") = " << hit.getIncidentEnergy() << " (MeV)" << "\n"
191  << " Entry point in Totem unit number " << hit.getUnitID()
192  << " is: " << hit.getEntry() << " (mm)" << "\n"
193  << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
194  return os;
195 }
float getEnergyLoss() const
Definition: TotemG4Hit.cc:150
math::XYZPoint getEntry() const
Definition: TotemG4Hit.cc:123
int getTrackID() const
Definition: TotemG4Hit.cc:134
int getTimeSliceID() const
Definition: TotemG4Hit.cc:142
double getIncidentEnergy() const
Definition: TotemG4Hit.cc:131
uint32_t getUnitID() const
Definition: TotemG4Hit.cc:137