CMS 3D CMS Logo

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().

00186                                                               {
00187   os << " Data of this TotemG4Hit are:\n" 
00188      << " Time slice ID: " << hit.getTimeSliceID() << "\n"
00189      << " EnergyDeposit = " << hit.getEnergyLoss() << "\n"
00190      << " Energy of primary particle (ID = " << hit.getTrackID()
00191      << ") = " << hit.getIncidentEnergy() << " (MeV)" << "\n"
00192      << " Entry point in Totem unit number " << hit.getUnitID()
00193      << " is: " << hit.getEntry() << " (mm)" << "\n"
00194      << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
00195   return os;
00196 }


Generated on Tue Jun 9 17:55:46 2009 for CMSSW by  doxygen 1.5.4