Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CCalHit.cc File Reference
#include "CCalHit.hh"
#include <iostream>
Include dependency graph for CCalHit.cc:

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 104 of file CCalHit.cc.

104  {
105  os << " Data of this CCalHit are:"<< G4endl
106  << " \t Time slice ID: " << hit.getTimeSliceID() << G4endl
107  << " \t Energy of primary particle (ID = " << hit.getTrackID()
108  << ") = " << hit.getIncidentEnergy() << " (MeV)"<< G4endl
109  << " \t Entry point in Calorimeter unit number " << hit.getUnitID()
110  << " is: " << hit.getEntry() << " (mm)" << G4endl
111  << " \t EnergyDeposit = " << hit.getEnergyDeposit() << " (MeV)" << G4endl;
112  return os;
113 }
double getIncidentEnergy() const
Definition: CCalHit.cc:68
double getEnergyDeposit() const
Definition: CCalHit.cc:86
int getTrackID() const
Definition: CCalHit.cc:71
CLHEP::Hep3Vector getEntry() const
Definition: CCalHit.cc:65
unsigned int getUnitID() const
Definition: CCalHit.cc:74
#define G4endl
Definition: G4ios.hh:61
int getTimeSliceID() const
Definition: CCalHit.cc:79

Here is the call graph for this function: