CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
FP420G4Hit.cc File Reference
#include "SimG4CMS/FP420/interface/FP420G4Hit.h"
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 190 of file FP420G4Hit.cc.

References FP420G4Hit::getEM(), FP420G4Hit::getEnergyDeposit(), FP420G4Hit::getEnergyLoss(), FP420G4Hit::getEntry(), FP420G4Hit::getEntryLocalP(), FP420G4Hit::getExitLocalP(), FP420G4Hit::getHadr(), FP420G4Hit::getIncidentEnergy(), FP420G4Hit::getPabs(), FP420G4Hit::getParentId(), FP420G4Hit::getParticleType(), FP420G4Hit::getPhiAtEntry(), FP420G4Hit::getThetaAtEntry(), FP420G4Hit::getTimeSlice(), FP420G4Hit::getTimeSliceID(), FP420G4Hit::getTof(), FP420G4Hit::getTrackID(), FP420G4Hit::getUnitID(), FP420G4Hit::getVx(), FP420G4Hit::getVy(), FP420G4Hit::getVz(), FP420G4Hit::getX(), FP420G4Hit::getY(), and FP420G4Hit::getZ().

190  {
191  os << " Data of this FP420G4Hit are:" << std::endl
192  << " hitEntryLocalP: " << hit.getEntryLocalP() << std::endl
193  << " hitExitLocalP: " << hit.getExitLocalP() << std::endl
194  << " Time slice ID: " << hit.getTimeSliceID() << std::endl
195  << " Time slice : " << hit.getTimeSlice() << std::endl
196  << " Tof : " << hit.getTof() << std::endl
197  << " EnergyDeposit = " << hit.getEnergyDeposit() << std::endl
198  << " elmenergy = " << hit.getEM() << std::endl
199  << " hadrenergy = " << hit.getHadr() << std::endl
200  << " EnergyLoss = " << hit.getEnergyLoss() << std::endl
201  << " ParticleType = " << hit.getParticleType() << std::endl
202  << " ParticleType = " << hit.getParticleType() << std::endl
203  << " Theta at Entry = " << hit.getThetaAtEntry() << std::endl
204  << " Phi at Entry = " << hit.getPhiAtEntry() << std::endl
205  << " X at Entry = " << hit.getX() << std::endl
206  << " Y at Entry = " << hit.getY() << std::endl
207  << " Z at Entry = " << hit.getZ() << std::endl
208  << " VtxX = " << hit.getVx() << std::endl
209  << " VtxY = " << hit.getVy() << std::endl
210  << " VtxZ = " << hit.getVz() << std::endl
211  << " parentID = " << hit.getParentId() << std::endl
212  << " Pabs = " << hit.getPabs() << std::endl
213  << " Energy of primary particle (ID = " << hit.getTrackID()
214  << ") = " << hit.getIncidentEnergy() << " (MeV)"<<std::endl
215  << " Entry point in FP420 unit number " << hit.getUnitID()
216  << " is: " << hit.getEntry() << " (mm)" << std::endl;
217  os << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
218  << std::endl;
219  return os;
220 }
double getEnergyDeposit() const
Definition: FP420G4Hit.cc:146
float getTof() const
Definition: FP420G4Hit.cc:149
G4ThreeVector getExitLocalP() const
Definition: FP420G4Hit.cc:121
float getVz() const
Definition: FP420G4Hit.cc:183
float getPabs() const
Definition: FP420G4Hit.cc:148
unsigned int getTrackID() const
Definition: FP420G4Hit.cc:133
float getVx() const
Definition: FP420G4Hit.cc:177
float getPhiAtEntry() const
Definition: FP420G4Hit.cc:160
int getParentId() const
Definition: FP420G4Hit.cc:174
unsigned int getUnitID() const
Definition: FP420G4Hit.cc:136
float getVy() const
Definition: FP420G4Hit.cc:180
double getIncidentEnergy() const
Definition: FP420G4Hit.cc:130
double getHadr() const
Definition: FP420G4Hit.cc:127
G4ThreeVector getEntryLocalP() const
Definition: FP420G4Hit.cc:118
float getX() const
Definition: FP420G4Hit.cc:165
float getEnergyLoss() const
Definition: FP420G4Hit.cc:150
int getTimeSliceID() const
Definition: FP420G4Hit.cc:141
int getParticleType() const
Definition: FP420G4Hit.cc:151
double getEM() const
Definition: FP420G4Hit.cc:124
G4ThreeVector getEntry() const
Definition: FP420G4Hit.cc:115
float getY() const
Definition: FP420G4Hit.cc:168
double getTimeSlice() const
Definition: FP420G4Hit.cc:139
float getZ() const
Definition: FP420G4Hit.cc:171
float getThetaAtEntry() const
Definition: FP420G4Hit.cc:159