CMS 3D CMS Logo

Classes | Functions
BscG4Hit.h File Reference
#include "G4VHit.hh"
#include <CLHEP/Vector/ThreeVector.h>
#include <boost/cstdint.hpp>
#include <iostream>
#include "G4Step.hh"

Go to the source code of this file.

Classes

class  BscG4Hit
 

Functions

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

Function Documentation

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

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().

189  {
190  os << " Data of this BscG4Hit are:" << std::endl
191  << " hitEntryLocalP: " << hit.getEntryLocalP() << std::endl
192  << " hitExitLocalP: " << hit.getExitLocalP() << std::endl
193  << " Time slice ID: " << hit.getTimeSliceID() << std::endl
194  << " Time slice : " << hit.getTimeSlice() << std::endl
195  << " Tof : " << hit.getTof() << std::endl
196  << " EnergyDeposit = " << hit.getEnergyDeposit() << std::endl
197  << " elmenergy = " << hit.getEM() << std::endl
198  << " hadrenergy = " << hit.getHadr() << std::endl
199  << " EnergyLoss = " << hit.getEnergyLoss() << std::endl
200  << " ParticleType = " << hit.getParticleType() << std::endl
201  << " Pabs = " << hit.getPabs() << std::endl
202  << " Energy of primary particle (ID = " << hit.getTrackID()
203  << ") = " << hit.getIncidentEnergy() << " (MeV)"<<std::endl
204  << " Entry point in Bsc unit number " << hit.getUnitID()
205  << " is: " << hit.getEntry() << " (mm)" << std::endl;
206  os << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
207  << std::endl;
208  return os;
209 
210 }