CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 145 of file TotemRPG4Hit.cc.

References TotemRPG4Hit::energyLoss(), TotemRPG4Hit::entry(), TotemRPG4Hit::incidentEnergy(), TotemRPG4Hit::timeSliceID(), TotemRPG4Hit::trackID(), and TotemRPG4Hit::unitID().

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 }
unsigned int trackID() const
Definition: TotemRPG4Hit.cc:89
int unitID() const
Definition: TotemRPG4Hit.cc:92
int timeSliceID() const
Definition: TotemRPG4Hit.cc:97
G4ThreeVector entry() const
Definition: TotemRPG4Hit.cc:75
double energyLoss() const
double incidentEnergy() const
Definition: TotemRPG4Hit.cc:86