GGS(GenericGEANT4Simulation)Software
2.6.0
|
Class to store G4 position hits. More...
#include <GGSTHits.h>
Public Member Functions | |
GGSTIntHit () | |
Constructor. | |
~GGSTIntHit () | |
Destructor. | |
void | Clear (Option_t *) |
Resets data members. More... | |
virtual void | UserConversion (const GGSIntHit &intHit) |
Hook for user-defined conversion. 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... | |
GGSTPartHit * | GetPartHit (unsigned int iHit) |
Get the specified particle hit. More... | |
Data Fields | |
Float_t | eDep |
Deposited energy (transient). | |
TArrayF | eDepTimeBin |
Energy deposit in each time bin. | |
Float_t | time |
Time of the hit (in ns). | |
Friends | |
class | GGSHitsAction |
class | GGSTHitsReader |
Class to store G4 position hits.
This class is used to write on ROOT files the informations stored in GGSIntHit. It inherits form TObject and has data members corresponding to those of GGSIntHit.
Definition at line 160 of file GGSTHits.h.
void GGSTIntHit::Clear | ( | Option_t * | ) |
Resets data members.
This function has an unused Option_t argument so that a TClonesArray of GGSTPrimaryParticle can call this method when clearing the objects it contains (eg., when TClonesArray::Clear("C") is called).
Definition at line 207 of file GGSTHits.cpp.
|
inline |
Retrieves the name of the detector associated to the hit.
Definition at line 200 of file GGSTHits.h.
Int_t GGSTIntHit::GetNPartHits | ( | ) |
Gets the number of particle hits.
Definition at line 239 of file GGSTHits.cpp.
GGSTPartHit * GGSTIntHit::GetPartHit | ( | unsigned int | iHit | ) |
Get the specified particle hit.
iHit | The desired hit. |
Definition at line 248 of file GGSTHits.cpp.
|
inline |
Retrieves the time bins for the hit.
See GGSIntHit::GetTimeBins for details.
Definition at line 214 of file GGSTHits.h.
|
inline |
Retrieves the ID of the volume associated to the hit.
Definition at line 245 of file GGSTHits.h.
|
inline |
Retrieves the name of the volume associated to the hit.
Definition at line 222 of file GGSTHits.h.
|
inline |
Retrieves the position of the volume associated to the hit.
Definition at line 234 of file GGSTHits.h.
|
inlinevirtual |
Hook for user-defined conversion.
Derived classes can override this method to perform custom conversion of the simulation data stored in intHit.
intHit | Reference to the integrated hit object. It might refer to a class derived from GGSIntHit if that's what's actually in use. |
Definition at line 192 of file GGSTHits.h.