CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
TotemG4Hit.h File Reference
#include "G4VHit.hh"
#include "DataFormats/Math/interface/Point3D.h"
#include <boost/cstdint.hpp>
#include <iostream>

Go to the source code of this file.

Classes

class  TotemG4Hit
 

Functions

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

Function Documentation

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

Definition at line 186 of file TotemG4Hit.cc.

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

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