CMS 3D CMS Logo

Classes | Functions
BscG4Hit.h File Reference
#include "G4VHit.hh"
#include "G4ThreeVector.hh"
#include <cstdint>
#include <iostream>

Go to the source code of this file.

Classes

class  BscG4Hit
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 131 of file BSCG4Hit.cc.

131  {
132  os << " Data of this BscG4Hit are:" << std::endl
133  << " hitEntryLocalP: " << hit.getEntryLocalP() << std::endl
134  << " hitExitLocalP: " << hit.getExitLocalP() << std::endl
135  << " Time slice ID: " << hit.getTimeSliceID() << std::endl
136  << " Time slice : " << hit.getTimeSlice() << std::endl
137  << " Tof : " << hit.getTof() << std::endl
138  << " EnergyDeposit = " << hit.getEnergyDeposit() << std::endl
139  << " elmenergy = " << hit.getEM() << std::endl
140  << " hadrenergy = " << hit.getHadr() << std::endl
141  << " EnergyLoss = " << hit.getEnergyLoss() << std::endl
142  << " ParticleType = " << hit.getParticleType() << std::endl
143  << " Pabs = " << hit.getPabs() << std::endl
144  << " Energy of primary particle (ID = " << hit.getTrackID() << ") = " << hit.getIncidentEnergy() << " (MeV)"
145  << std::endl
146  << " Entry point in Bsc unit number " << hit.getUnitID() << " is: " << hit.getEntry() << " (mm)" << std::endl;
147  os << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl;
148  return os;
149 }