test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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 }
G4ThreeVector getEntryLocalP() const
Definition: BSCG4Hit.cc:118
int getParticleType() const
Definition: BSCG4Hit.cc:151
G4int getTrackID() const
Definition: BSCG4Hit.cc:133
float getTof() const
Definition: BSCG4Hit.cc:149
float getPabs() const
Definition: BSCG4Hit.cc:148
unsigned int getUnitID() const
Definition: BSCG4Hit.cc:136
int getTimeSliceID() const
Definition: BSCG4Hit.cc:141
double getHadr() const
Definition: BSCG4Hit.cc:127
G4ThreeVector getExitLocalP() const
Definition: BSCG4Hit.cc:121
double getEnergyDeposit() const
Definition: BSCG4Hit.cc:146
G4ThreeVector getEntry() const
Definition: BSCG4Hit.cc:115
double getIncidentEnergy() const
Definition: BSCG4Hit.cc:130
double getTimeSlice() const
Definition: BSCG4Hit.cc:139
double getEM() const
Definition: BSCG4Hit.cc:124
float getEnergyLoss() const
Definition: BSCG4Hit.cc:150