CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_0/src/SimG4CMS/Forward/src/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 186 of file TotemG4Hit.cc.

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

                                                              {
  os << " Data of this TotemG4Hit are:\n" 
     << " Time slice ID: " << hit.getTimeSliceID() << "\n"
     << " EnergyDeposit = " << hit.getEnergyLoss() << "\n"
     << " Energy of primary particle (ID = " << hit.getTrackID()
     << ") = " << hit.getIncidentEnergy() << " (MeV)" << "\n"
     << " Entry point in Totem unit number " << hit.getUnitID()
     << " is: " << hit.getEntry() << " (mm)" << "\n"
     << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
  return os;
}