GGS(GenericGEANT4Simulation)Software
2.7.0
|
Base class for storing G4 integrated hits. More...
#include <GGSTHits.h>
Public Member Functions | |
GGSTIntHitBase () | |
Constructor. | |
~GGSTIntHitBase () | |
Destructor. | |
void | Clear (Option_t *) |
Resets the data members. More... | |
const TString & | GetDetectorName () |
Retrieves the name of the detector associated to the hit. More... | |
const TArrayF & | GetTimeBins () |
Retrieves the time bins for the hit. More... | |
const TString & | GetVolumeName () |
Retrieves the name of the volume associated to the hit. More... | |
const Float_t * | GetVolumePosition () |
Retrieves the position of the volume associated to the hit. More... | |
Int_t | GetVolumeID () |
Retrieves the ID of the volume associated to the hit. More... | |
Int_t | GetNPartHits () |
Gets the number of particle hits. More... | |
GGSTPartHitBase * | GetPartHit (unsigned int iHit) |
Get the specified particle hit. More... | |
std::string | GetPartHitsClassName () |
Gets the name of the class of the particle hits. More... | |
Data Fields | |
Float_t | eDep |
Deposited energy (transient). | |
TArrayF | eDepTimeBin |
Energy deposit in each time bin. | |
Friends | |
class | GGSHitsAction |
class | GGSTHitsReader |
Base class for storing G4 integrated hits.
This class is used to write on ROOT files the informations stored in GGSIntHit. It inherits form TObject and has just data members for energy deposit and volume information.
Definition at line 218 of file GGSTHits.h.
void GGSTIntHitBase::Clear | ( | Option_t * | ) |
Resets the data members.
Will clear also the TClonesArray of particle hits by passing the opt
parameter (i.e. if opt
is "C" then also the particle hits will be cleared).
opt | The cleaning option. |
Definition at line 167 of file GGSTHits.cpp.
|
inline |
Retrieves the name of the detector associated to the hit.
Definition at line 257 of file GGSTHits.h.
Int_t GGSTIntHitBase::GetNPartHits | ( | ) |
Gets the number of particle hits.
Definition at line 175 of file GGSTHits.cpp.
GGSTPartHitBase * GGSTIntHitBase::GetPartHit | ( | unsigned int | iHit | ) |
Get the specified particle hit.
iHit | The desired hit. |
Definition at line 182 of file GGSTHits.cpp.
std::string GGSTIntHitBase::GetPartHitsClassName | ( | ) |
Gets the name of the class of the particle hits.
Definition at line 190 of file GGSTHits.cpp.
|
inline |
Retrieves the time bins for the hit.
See GGSIntHit::GetTimeBins for details.
Definition at line 271 of file GGSTHits.h.
|
inline |
Retrieves the ID of the volume associated to the hit.
Definition at line 300 of file GGSTHits.h.
|
inline |
Retrieves the name of the volume associated to the hit.
Definition at line 277 of file GGSTHits.h.
|
inline |
Retrieves the position of the volume associated to the hit.
Definition at line 289 of file GGSTHits.h.