CMS 3D CMS Logo

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

◆ operator<<()

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

Definition at line 165 of file PPSDiamondG4Hit.cc.

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 }