CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
PPSPixelG4Hit.cc File Reference
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SimG4CMS/PPS/interface/PPSPixelG4Hit.h"
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 212 of file PPSPixelG4Hit.cc.

References PPSPixelG4Hit::energyLoss(), PPSPixelG4Hit::entryPoint(), PPSPixelG4Hit::exitPoint(), PPSPixelG4Hit::incidentEnergy(), PPSPixelG4Hit::meanPosition(), PPSPixelG4Hit::timeSliceID(), PPSPixelG4Hit::trackID(), and PPSPixelG4Hit::unitID().

212  {
213  os << " Data of this PPSPixelG4Hit are:\n"
214  << " Time slice ID: " << hit.timeSliceID() << "\n"
215  << " EnergyDeposit = " << hit.energyLoss() << "\n"
216  << " Energy of primary particle (ID = " << hit.trackID() << ") = " << hit.incidentEnergy() << " (MeV)"
217  << "\n"
218  << " Local entry and exit points in PPS unit number " << hit.unitID() << " are: " << hit.entryPoint() << " (mm)"
219  << hit.exitPoint() << " (mm)"
220  << "\n"
221  << " Global posizion in PPS unit number " << hit.unitID() << " are: " << hit.meanPosition() << " (mm)"
222  << "\n"
223  << "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
224  return os;
225 }
const G4ThreeVector & exitPoint() const
float energyLoss() const
int timeSliceID() const
const G4ThreeVector & entryPoint() const
const G4ThreeVector & meanPosition() const
Definition: PPSPixelG4Hit.h:53
uint32_t unitID() const
int trackID() const
double incidentEnergy() const