CMS 3D CMS Logo

Functions
BSCG4Hit.cc File Reference
#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)
 

Function Documentation

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

Definition at line 126 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().

126  {
127  os << " Data of this BscG4Hit are:" << std::endl
128  << " hitEntryLocalP: " << hit.getEntryLocalP() << std::endl
129  << " hitExitLocalP: " << hit.getExitLocalP() << std::endl
130  << " Time slice ID: " << hit.getTimeSliceID() << std::endl
131  << " Time slice : " << hit.getTimeSlice() << std::endl
132  << " Tof : " << hit.getTof() << std::endl
133  << " EnergyDeposit = " << hit.getEnergyDeposit() << std::endl
134  << " elmenergy = " << hit.getEM() << std::endl
135  << " hadrenergy = " << hit.getHadr() << std::endl
136  << " EnergyLoss = " << hit.getEnergyLoss() << std::endl
137  << " ParticleType = " << hit.getParticleType() << std::endl
138  << " Pabs = " << hit.getPabs() << std::endl
139  << " Energy of primary particle (ID = " << hit.getTrackID()
140  << ") = " << hit.getIncidentEnergy() << " (MeV)"<<std::endl
141  << " Entry point in Bsc unit number " << hit.getUnitID()
142  << " is: " << hit.getEntry() << " (mm)" << std::endl;
143  os << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
144  << std::endl;
145  return os;
146 
147 }
int getParticleType() const
Definition: BscG4Hit.h:67
float getIncidentEnergy() const
Definition: BscG4Hit.h:47
float getTof() const
Definition: BscG4Hit.h:65
float getPabs() const
Definition: BscG4Hit.h:64
int getTrackID() const
Definition: BscG4Hit.h:50
int getTimeSliceID() const
Definition: BscG4Hit.h:58
const G4ThreeVector & getExitLocalP() const
Definition: BscG4Hit.h:38
const G4ThreeVector & getEntry() const
Definition: BscG4Hit.h:32
float getHadr() const
Definition: BscG4Hit.h:44
float getEM() const
Definition: BscG4Hit.h:41
float getEnergyDeposit() const
Definition: BscG4Hit.h:62
const G4ThreeVector & getEntryLocalP() const
Definition: BscG4Hit.h:35
uint32_t getUnitID() const
Definition: BscG4Hit.h:53
double getTimeSlice() const
Definition: BscG4Hit.h:56
float getEnergyLoss() const
Definition: BscG4Hit.h:66