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

◆ operator<<()

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

Definition at line 165 of file PPSDiamondG4Hit.cc.

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 }
hit
Definition: SiStripHitEffFromCalibTree.cc:88