CMS 3D CMS Logo

Functions
FP420G4Hit.cc File Reference
#include "SimG4CMS/FP420/interface/FP420G4Hit.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 177 of file FP420G4Hit.cc.

References l1tGTMenu_BTagSeeds_cff::os.

177  {
178  os << " Data of this FP420G4Hit are:" << std::endl
179  << " hitEntryLocalP: " << hit.getEntryLocalP() << std::endl
180  << " hitExitLocalP: " << hit.getExitLocalP() << std::endl
181  << " Time slice ID: " << hit.getTimeSliceID() << std::endl
182  << " Time slice : " << hit.getTimeSlice() << std::endl
183  << " Tof : " << hit.getTof() << std::endl
184  << " EnergyDeposit = " << hit.getEnergyDeposit() << std::endl
185  << " elmenergy = " << hit.getEM() << std::endl
186  << " hadrenergy = " << hit.getHadr() << std::endl
187  << " EnergyLoss = " << hit.getEnergyLoss() << std::endl
188  << " ParticleType = " << hit.getParticleType() << std::endl
189  << " ParticleType = " << hit.getParticleType() << std::endl
190  << " Theta at Entry = " << hit.getThetaAtEntry() << std::endl
191  << " Phi at Entry = " << hit.getPhiAtEntry() << std::endl
192  << " X at Entry = " << hit.getX() << std::endl
193  << " Y at Entry = " << hit.getY() << std::endl
194  << " Z at Entry = " << hit.getZ() << std::endl
195  << " VtxX = " << hit.getVx() << std::endl
196  << " VtxY = " << hit.getVy() << std::endl
197  << " VtxZ = " << hit.getVz() << std::endl
198  << " parentID = " << hit.getParentId() << std::endl
199  << " Pabs = " << hit.getPabs() << std::endl
200  << " Energy of primary particle (ID = " << hit.getTrackID() << ") = " << hit.getIncidentEnergy() << " (MeV)"
201  << std::endl
202  << " Entry point in FP420 unit number " << hit.getUnitID() << " is: " << hit.getEntry() << " (mm)" << std::endl;
203  os << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl;
204  return os;
205 }