CMS 3D CMS Logo

Classes | Functions

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/SimG4CMS/Forward/interface/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().

                                                            {
  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;

}