15 #include "TClonesArray.h"
25 template <
class T>
void IGNORE(
const T &) {}
47 void Clear(Option_t *);
58 virtual void UserConversion(
const GGSPosHit &posHit) { IGNORE(posHit); }
83 void Clear(Option_t * =
nullptr);
90 void UserConversion(
const GGSPosHit &posHit);
124 void Clear(Option_t *opt);
135 virtual void UserConversion(
const GGSPartHit &partHit) { IGNORE(partHit); }
163 TClonesArray *_posHits;
192 void Clear(Option_t *opt);
199 void UserConversion(
const GGSPartHit &partHit);
209 #include "montecarlo/dataobjs/GGSTHitVolInfo.h"
239 void Clear(Option_t *);
250 virtual void UserConversion(
const GGSIntHit &intHit) { IGNORE(intHit); }
258 static const TString nullString(
"");
278 static const TString nullString(
"");
302 return _hitVolInfo->
id;
330 TClonesArray *_partHits;
353 void Clear(Option_t *opt);
360 void UserConversion(
const GGSIntHit &intHit);
Float_t volumePos[3]
Position of the touchable in world volume coordinates [cm].
GGSTPartHit()
Constructor.
Float_t startMomentum[3]
Start momentum.
GGSTPosHitBase()
Constructor.
Int_t id
ID of the volume.
Class for reading output of GGSHitsAction.
Float_t time
Time of the hit.
GGSTPosHitBase * GetPosHit(unsigned int iHit)
Get the specified position hit.
Class to store detector informations.
Float_t eDep
Deposited energy.
const Float_t * GetVolumePosition()
Retrieves the position of the volume associated to the hit.
Float_t pathLength
Path length of the hit.
~GGSTPartHitBase()
Destructor.
const TArrayF & GetTimeBins()
Retrieves the time bins for the hit.
GGSTPartHitBase * GetPartHit(unsigned int iHit)
Get the specified particle hit.
Float_t startEnergy
Start kinetic energy.
Float_t entranceEnergy
Entrance kinetic energy.
GGSTPartHitBase()
Constructor.
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.
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.
Int_t GetVolumeID()
Retrieves the ID of the volume associated to the hit.
void Clear(Option_t *)
Resets the data members.
Float_t time
Time of the hit (in ns).
const TString & GetVolumeName()
Retrieves the name of the volume associated to the hit.
GGSTIntHitBase()
Constructor.
Float_t eDep
Deposited energy (transient).
~GGSTIntHitBase()
Destructor.
Class to store G4 position hits.
Class to store G4 integrated hits.
An action which saves hits in sensitive volumes on ROOT file.
void Clear(Option_t *opt)
Resets the data members.
Int_t particlePdg
Particle PDG ID.
TString volumeName
Name of the physical volume.
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.
const TString & GetDetectorName()
Retrieves the name of the detector associated to the hit.
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.
Base class for storing G4 position hits.
TArrayF eDepTimeBin
Energy deposit in each time bin.
GGSTHitVolInfo.h GGSTHitVolInfo class declaration.
Int_t GetNPartHits()
Gets the number of particle hits.
TString detectorName
Name of detector associated to integrated hits.
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.