#include <CCalHit.hh>
Definition at line 52 of file CCalHit.hh.
Definition at line 35 of file CCalHit.cc.
36 entry(0), theIncidentEnergy(0.0), theTrackID(-1),
37 theUnitID(0), theTimeSlice(0.0), theEnergyDeposit(0.0)
CCalHit::CCalHit |
( |
const CCalHit & |
right | ) |
|
Definition at line 44 of file CCalHit.cc.
46 theIncidentEnergy( right.theIncidentEnergy ),
47 theTrackID( right.theTrackID ),
48 theUnitID( right.theUnitID ),
49 theTimeSlice( right.theTimeSlice ),
50 theEnergyDeposit( right.theEnergyDeposit )
Definition at line 90 of file CCalHit.cc.
double getEnergyDeposit() const
void addEnergyDeposit(const CCalHit &aHit)
void CCalHit::addEnergyDeposit |
( |
const double |
e | ) |
|
Definition at line 94 of file CCalHit.cc.
95 theEnergyDeposit += e;
double CCalHit::getEnergyDeposit |
( |
| ) |
const |
Definition at line 86 of file CCalHit.cc.
87 return theEnergyDeposit;
double CCalHit::getIncidentEnergy |
( |
| ) |
const |
Definition at line 68 of file CCalHit.cc.
68 {
return theIncidentEnergy; }
double CCalHit::getTimeSlice |
( |
| ) |
const |
Definition at line 77 of file CCalHit.cc.
77 {
return theTimeSlice; }
int CCalHit::getTimeSliceID |
( |
| ) |
const |
Definition at line 79 of file CCalHit.cc.
79 {
if ( theTimeSlice > 1.0E9 )
return 999999999;
80 return (
int)theTimeSlice;}
int CCalHit::getTrackID |
( |
| ) |
const |
unsigned int CCalHit::getUnitID |
( |
| ) |
const |
Definition at line 54 of file CCalHit.cc.
56 theIncidentEnergy = right.theIncidentEnergy;
57 theTrackID = right.theTrackID;
58 theUnitID = right.theUnitID;
59 theTimeSlice = right.theTimeSlice;
60 theEnergyDeposit = right.theEnergyDeposit;
Definition at line 99 of file CCalHit.cc.
G4GLOB_DLL std::ostream G4cout
void CCalHit::setEnergyDeposit |
( |
const double |
e | ) |
|
void CCalHit::setIncidentEnergy |
( |
double |
e | ) |
|
Definition at line 69 of file CCalHit.cc.
69 {theIncidentEnergy = e; }
void CCalHit::setTimeSlice |
( |
double |
d | ) |
|
void CCalHit::setUnitID |
( |
unsigned int |
i | ) |
|
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const CCalHit & |
hit |
|
) |
| |
|
friend |
Definition at line 104 of file CCalHit.cc.
105 os <<
" Data of this CCalHit are:"<<
G4endl
107 <<
" \t Energy of primary particle (ID = " << hit.
getTrackID()
109 <<
" \t Entry point in Calorimeter unit number " << hit.
getUnitID()
double getIncidentEnergy() const
double getEnergyDeposit() const
CLHEP::Hep3Vector getEntry() const
unsigned int getUnitID() const
int getTimeSliceID() const
The documentation for this class was generated from the following files:
- source/geant4.10.03.p03/examples/advanced/composite_calorimeter/include/CCalHit.hh
- source/geant4.10.03.p03/examples/advanced/composite_calorimeter/src/CCalHit.cc