CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  PPSDiamondG4Hit
 

Functions

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

Function Documentation

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

Definition at line 165 of file PPSDiamondG4Hit.cc.

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

165  {
166  os << " Data of this PPSDiamondG4Hit are:" << std::endl
167  << " Time slice ID: " << hit.timeSliceID() << std::endl
168  << " EnergyDeposit = " << hit.energyLoss() << std::endl
169  << " Energy of primary particle (ID = " << hit.trackID() << ") = " << hit.incidentEnergy() << " (MeV)"
170  << "\n"
171  << " Local entry and exit points in PPS unit number " << hit.unitID() << " are: " << hit.entry() << " (mm)"
172  << hit.exit() << " (mm)"
173  << "\n"
174  << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl;
175  return os;
176 }