#include "SimG4CMS/Forward/interface/BscG4Hit.h"
#include <iostream>
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &os, const BscG4Hit &hit) |
std::ostream& operator<< | ( | std::ostream & | os, |
const BscG4Hit & | hit | ||
) |
Definition at line 189 of file BSCG4Hit.cc.
References BscG4Hit::getEM(), BscG4Hit::getEnergyDeposit(), BscG4Hit::getEnergyLoss(), BscG4Hit::getEntry(), BscG4Hit::getEntryLocalP(), BscG4Hit::getExitLocalP(), BscG4Hit::getHadr(), BscG4Hit::getIncidentEnergy(), BscG4Hit::getPabs(), BscG4Hit::getParticleType(), BscG4Hit::getTimeSlice(), BscG4Hit::getTimeSliceID(), BscG4Hit::getTof(), BscG4Hit::getTrackID(), and BscG4Hit::getUnitID().
{ os << " Data of this BscG4Hit are:" << std::endl << " hitEntryLocalP: " << hit.getEntryLocalP() << std::endl << " hitExitLocalP: " << hit.getExitLocalP() << std::endl << " Time slice ID: " << hit.getTimeSliceID() << std::endl << " Time slice : " << hit.getTimeSlice() << std::endl << " Tof : " << hit.getTof() << std::endl << " EnergyDeposit = " << hit.getEnergyDeposit() << std::endl << " elmenergy = " << hit.getEM() << std::endl << " hadrenergy = " << hit.getHadr() << std::endl << " EnergyLoss = " << hit.getEnergyLoss() << std::endl << " ParticleType = " << hit.getParticleType() << std::endl << " Pabs = " << hit.getPabs() << std::endl << " Energy of primary particle (ID = " << hit.getTrackID() << ") = " << hit.getIncidentEnergy() << " (MeV)"<<std::endl << " Entry point in Bsc unit number " << hit.getUnitID() << " is: " << hit.getEntry() << " (mm)" << std::endl; os << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl; return os; }