22 TObject(), eDep(0.), time(0.), pathLength(0.), startEnergy(0.) {
24 startPoint[0] = startPoint[1] = startPoint[2] = 0.;
25 endPoint[0] = endPoint[1] = endPoint[2] = 0.;
26 startMomentum[0] = startMomentum[1] = startMomentum[2] = 0.;
73 TObject(), eDep(0.), time(0.), pathLength(0.), entranceEnergy(0.), trackID(-1), parentID(-2), particlePdg(0), _posHits(
74 NULL), _posHitIndex(0) {
76 entrancePoint[0] = entrancePoint[1] = entrancePoint[2] = 0.;
77 exitPoint[0] = exitPoint[1] = exitPoint[2] = 0.;
78 entranceMomentum[0] = entranceMomentum[1] = entranceMomentum[2] = 0.;
102 _posHits->Clear(
"C");
147 std::cout <<
"+++++++ GGSTPartHit::Dump +++++++\n";
148 std::cout <<
" trackID: " <<
trackID <<
"\n";
149 std::cout <<
" parentID: " <<
parentID <<
"\n";
150 std::cout <<
" particlePdg: " <<
particlePdg <<
"\n";
151 std::cout <<
" -------------\n";
152 std::cout <<
" eDep: " <<
eDep <<
"\n";
153 std::cout <<
" time: " <<
time <<
"\n";
154 std::cout <<
" pathLength: " <<
pathLength <<
"\n";
155 std::cout <<
" time: " << time <<
"\n";
161 std::cout <<
"+++++++++++++++++++++++++++++++++\n" << std::endl;
168 return (_posHits->GetEntries());
194 TObject(), eDep(0.), eDepTimeBin(), time(0), _volumeIndex(0), _partHits(NULL), _hitDetInfo(NULL), _hitVolInfo(NULL) {
213 _partHits->Clear(
"C");
241 return (_partHits->GetEntries());
Float_t startMomentum[3]
Start momentum.
Float_t eDep
Total deposited energy.
Float_t time
Time of the hit.
void DumpHit()
Prints members values on standard output.
void Clear(Option_t *)
Resets data members.
GGSTPosHit * GetPosHit(unsigned int iHit)
Get the specified position hit.
Float_t pathLength
Path length of the hit.
Float_t eDep
Deposited energy (transient).
Float_t startEnergy
Start kinetic energy.
Float_t entrancePoint[3]
Entrance point.
Float_t time
Time of the hit.
Float_t pathLength
Path length of the hit.
Class to store G4 particle hits.
Int_t trackID
GEANT4 track ID.
void Clear(Option_t *)
Resets data members.
~GGSTPartHit()
Destructor.
Float_t time
Time of the hit (in ns).
Float_t eDep
Deposited energy.
void Clear(Option_t *)
Resets data members.
const GGSTPosHit & operator=(const GGSTPosHit &)
Assignment operator.
Int_t GetNPartHits()
Gets the number of particle hits.
Class to store G4 position hits.
TArrayF eDepTimeBin
Energy deposit in each time bin.
Class to store G4 position hits.
Int_t particlePdg
Particle PDG ID.
Float_t startPoint[3]
Start point.
Float_t exitPoint[3]
Exit point.
Int_t GetNPosHits()
Gets the number of position hits.
Int_t parentID
GEANT4 parent ID.
Float_t entranceMomentum[3]
Entrance momentum.
GGSTPartHit * GetPartHit(unsigned int iHit)
Get the specified particle hit.
Float_t endPoint[3]
End point.