CMS 3D CMS Logo

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

Go to the source code of this file.

Classes

class  PPSPixelG4Hit
 

Functions

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

Function Documentation

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

Definition at line 212 of file PPSPixelG4Hit.cc.

References PPSPixelG4Hit::energyLoss(), PPSPixelG4Hit::entryPoint(), PPSPixelG4Hit::exitPoint(), PPSPixelG4Hit::incidentEnergy(), PPSPixelG4Hit::meanPosition(), PPSPixelG4Hit::timeSliceID(), PPSPixelG4Hit::trackID(), and PPSPixelG4Hit::unitID().

212  {
213  os << " Data of this PPSPixelG4Hit are:\n"
214  << " Time slice ID: " << hit.timeSliceID() << "\n"
215  << " EnergyDeposit = " << hit.energyLoss() << "\n"
216  << " Energy of primary particle (ID = " << hit.trackID() << ") = " << hit.incidentEnergy() << " (MeV)"
217  << "\n"
218  << " Local entry and exit points in PPS unit number " << hit.unitID() << " are: " << hit.entryPoint() << " (mm)"
219  << hit.exitPoint() << " (mm)"
220  << "\n"
221  << " Global posizion in PPS unit number " << hit.unitID() << " are: " << hit.meanPosition() << " (mm)"
222  << "\n"
223  << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
224  return os;
225 }