CMS 3D CMS Logo

Functions
TotemG4Hit.cc File Reference
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#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 180 of file TotemG4Hit.cc.

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