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 177 of file FP420G4Hit.cc.

References l1tGTMenu_BTagSeeds_cff::os.

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