CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  TotemRPG4Hit
 

Functions

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

Function Documentation

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

Definition at line 145 of file TotemRPG4Hit.cc.

References TotemRPG4Hit::energyLoss(), TotemRPG4Hit::entry(), TotemRPG4Hit::incidentEnergy(), TotemRPG4Hit::timeSliceID(), TotemRPG4Hit::trackID(), and TotemRPG4Hit::unitID().

145  {
146  os << " Data of this TotemRPG4Hit are:" << std::endl
147  << " Time slice ID: " << hit.timeSliceID() << std::endl
148  << " EnergyDeposit = " << hit.energyLoss() << std::endl
149  << " Energy of primary particle (ID = " << hit.trackID() << ") = " << hit.incidentEnergy() << " (MeV)" << std::endl
150  << " Entry point in Totem unit number " << hit.unitID() << " is: " << hit.entry() << " (mm)" << std::endl;
151  os << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl;
152  return os;
153 }