22 : TObject(), eDep(0.) {}
31 startPoint[0] = startPoint[1] = startPoint[2] = 0.;
32 endPoint[0] = endPoint[1] = endPoint[2] = 0.;
33 startMomentum[0] = startMomentum[1] = startMomentum[2] = 0.;
47 void GGSTPosHit::UserConversion(
const GGSPosHit &posHit) {
70 : TObject(), eDep(0.), _posHits(
nullptr), _posHitIndex(0) {}
88 return (_posHits->GetEntries());
102 if (_posHits ==
nullptr) {
105 std::string retValue = _posHits->GetName();
106 return retValue.substr(0, retValue.size() - 1);
112 :
GGSTPartHitBase(), time(0.), pathLength(0.), entranceEnergy(0.), trackID(-1), parentID(-2), particlePdg(0) {
114 entrancePoint[0] = entrancePoint[1] = entrancePoint[2] = 0.;
115 exitPoint[0] = exitPoint[1] = exitPoint[2] = 0.;
116 entranceMomentum[0] = entranceMomentum[1] = entranceMomentum[2] = 0.;
132 void GGSTPartHit::UserConversion(
const GGSPartHit &partHit) {
158 : TObject(), eDep(0.), eDepTimeBin(), _volumeIndex(0), _partHits(
nullptr), _hitDetInfo(
nullptr),
159 _hitVolInfo(
nullptr), _timeBins(
nullptr) {}
172 _partHits->Clear(
"C");
177 return (_partHits->GetEntries());
191 if (_partHits ==
nullptr) {
194 std::string retValue = _partHits->GetName();
195 return retValue.substr(0, retValue.size() - 1);
209 void GGSTIntHit::UserConversion(
const GGSIntHit &intHit) {
time = intHit.
GetTime() / CLHEP::ns; }
Float_t startMomentum[3]
Start momentum.
G4double GetPathLength() const
Path length getter.
Float_t time
Time of the hit.
GGSTPosHitBase * GetPosHit(unsigned int iHit)
Get the specified position hit.
G4double GetStartEnergy() const
Start energy getter.
Float_t eDep
Deposited energy.
Float_t pathLength
Path length of the hit.
~GGSTPartHitBase()
Destructor.
G4ThreeVector GetEntrancePoint() const
Entrance point getter.
GGSTPartHitBase * GetPartHit(unsigned int iHit)
Get the specified particle hit.
Float_t startEnergy
Start kinetic energy.
Float_t entranceEnergy
Entrance kinetic energy.
G4ThreeVector GetStartPoint() const
Start point getter.
void Clear(Option_t *opt)
Resets the particle hit.
Float_t entrancePoint[3]
Entrance point.
Float_t time
Time of the hit.
void Clear(Option_t *=nullptr)
Resets the data members.
Float_t pathLength
Path length of the hit.
void Clear(Option_t *opt)
Resets the particle hit.
G4ThreeVector GetStartMomentum() const
Momentum getter.
G4double GetTime() const
Time getter.
Class to store G4 particle hits.
Int_t trackID
GEANT4 track ID.
Definition of GGS Particle Hit.
Float_t eDep
Total deposited energy.
Definition of GGS Position Hit.
Base class for storing G4 particle hits.
void Clear(Option_t *)
Resets the data members.
G4int GetParentID() const
Parent's track ID getter.
Float_t time
Time of the hit (in ns).
G4ThreeVector GetEndPoint() const
End point getter.
G4double GetTime() const
Time getter.
G4int GetParticlePdg() const
PDG code getter.
G4ThreeVector GetExitPoint() const
Exit point getter.
G4ThreeVector GetEntranceMomentum() const
Entrance momentum getter.
Float_t eDep
Deposited energy (transient).
~GGSTIntHitBase()
Destructor.
G4double GetPathLength() const
Path length getter.
Class to store G4 position hits.
Class to store G4 integrated hits.
void Clear(Option_t *opt)
Resets the data members.
G4int GetTrackID() const
Track ID getter.
Int_t particlePdg
Particle PDG ID.
Definition of GGS Integrated Hit.
Int_t GetNPosHits()
Prints members values on standard output.
Float_t startPoint[3]
Start point.
std::string GetPartHitsClassName()
Gets the name of the class of the particle hits.
void Clear(Option_t *)
Resets the data members.
Float_t exitPoint[3]
Exit point.
std::string GetPosHitsClassName()
Gets the name of the class of the position hits.
G4double GetEntranceEnergy() const
Entrance energy getter.
Base class for storing G4 position hits.
TArrayF eDepTimeBin
Energy deposit in each time bin.
Int_t GetNPartHits()
Gets the number of particle hits.
G4double GetTime() const
Time getter.
Base class for storing G4 integrated hits.
Int_t parentID
GEANT4 parent ID.
Float_t entranceMomentum[3]
Entrance momentum.
Float_t endPoint[3]
End point.