CMS 3D CMS Logo

Classes | Functions
FP420G4Hit.h File Reference
#include "G4VHit.hh"
#include <iostream>
#include "G4Step.hh"

Go to the source code of this file.

Classes

class  FP420G4Hit
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 176 of file FP420G4Hit.cc.

176  {
177  os << " Data of this FP420G4Hit are:" << std::endl
178  << " hitEntryLocalP: " << hit.getEntryLocalP() << std::endl
179  << " hitExitLocalP: " << hit.getExitLocalP() << std::endl
180  << " Time slice ID: " << hit.getTimeSliceID() << std::endl
181  << " Time slice : " << hit.getTimeSlice() << std::endl
182  << " Tof : " << hit.getTof() << std::endl
183  << " EnergyDeposit = " << hit.getEnergyDeposit() << std::endl
184  << " elmenergy = " << hit.getEM() << std::endl
185  << " hadrenergy = " << hit.getHadr() << std::endl
186  << " EnergyLoss = " << hit.getEnergyLoss() << std::endl
187  << " ParticleType = " << hit.getParticleType() << std::endl
188  << " ParticleType = " << hit.getParticleType() << std::endl
189  << " Theta at Entry = " << hit.getThetaAtEntry() << std::endl
190  << " Phi at Entry = " << hit.getPhiAtEntry() << std::endl
191  << " X at Entry = " << hit.getX() << std::endl
192  << " Y at Entry = " << hit.getY() << std::endl
193  << " Z at Entry = " << hit.getZ() << std::endl
194  << " VtxX = " << hit.getVx() << std::endl
195  << " VtxY = " << hit.getVy() << std::endl
196  << " VtxZ = " << hit.getVz() << std::endl
197  << " parentID = " << hit.getParentId() << std::endl
198  << " Pabs = " << hit.getPabs() << std::endl
199  << " Energy of primary particle (ID = " << hit.getTrackID() << ") = " << hit.getIncidentEnergy() << " (MeV)"
200  << std::endl
201  << " Entry point in FP420 unit number " << hit.getUnitID() << " is: " << hit.getEntry() << " (mm)" << std::endl;
202  os << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl;
203  return os;
204 }