CMS 3D CMS Logo

Classes | Functions
TotemG4Hit.h File Reference
#include "G4VHit.hh"
#include "DataFormats/Math/interface/Point3D.h"
#include <cstdint>
#include <iostream>

Go to the source code of this file.

Classes

class  TotemG4Hit
 

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 179 of file TotemG4Hit.cc.

179  {
180  os << " Data of this TotemG4Hit are:\n"
181  << " Time slice ID: " << hit.getTimeSliceID() << "\n"
182  << " EnergyDeposit = " << hit.getEnergyLoss() << "\n"
183  << " Energy of primary particle (ID = " << hit.getTrackID() << ") = " << hit.getIncidentEnergy() << " (MeV)"
184  << "\n"
185  << " Entry point in Totem unit number " << hit.getUnitID() << " is: " << hit.getEntry() << " (mm)"
186  << "\n"
187  << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
188  return os;
189 }
hit
Definition: SiStripHitEffFromCalibTree.cc:88