CMS 3D CMS Logo

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

Function Documentation

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

Definition at line 165 of file PPSDiamondG4Hit.cc.

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

165  {
166  os << " Data of this PPSDiamondG4Hit are:" << std::endl
167  << " Time slice ID: " << hit.timeSliceID() << std::endl
168  << " EnergyDeposit = " << hit.energyLoss() << std::endl
169  << " Energy of primary particle (ID = " << hit.trackID() << ") = " << hit.incidentEnergy() << " (MeV)"
170  << "\n"
171  << " Local entry and exit points in PPS unit number " << hit.unitID() << " are: " << hit.entry() << " (mm)"
172  << hit.exit() << " (mm)"
173  << "\n"
174  << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl;
175  return os;
176 }
double energyLoss() const
unsigned int trackID() const
const G4ThreeVector & exit() const
double incidentEnergy() const
const G4ThreeVector & entry() const
int timeSliceID() const
int unitID() const