CMS 3D CMS Logo

Functions
TotemRPG4Hit.cc File Reference
#include "SimG4CMS/PPS/interface/TotemRPG4Hit.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 TotemRPG4Hit &hit)
 

Function Documentation

◆ operator<<()

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

Definition at line 145 of file TotemRPG4Hit.cc.

References l1tGTMenu_BTagSeeds_cff::os.

145  {
146  os << " Data of this TotemRPG4Hit are:" << std::endl
147  << " Time slice ID: " << hit.timeSliceID() << std::endl
148  << " EnergyDeposit = " << hit.energyLoss() << std::endl
149  << " Energy of primary particle (ID = " << hit.trackID() << ") = " << hit.incidentEnergy() << " (MeV)" << std::endl
150  << " Entry point in Totem unit number " << hit.unitID() << " is: " << hit.entry() << " (mm)" << std::endl;
151  os << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl;
152  return os;
153 }