CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 180 of file TotemG4Hit.cc.

References l1tGTMenu_BTagSeeds_cff::os.

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