GGS(GenericGEANT4Simulation)Software
2.6.0
|
Class to store G4 particle hits. More...
#include <GGSTHits.h>
Public Member Functions | |
GGSTPartHit () | |
Constructor. | |
~GGSTPartHit () | |
Destructor. | |
void | Clear (Option_t *) |
Resets data members. More... | |
virtual void | UserConversion (const GGSPartHit &partHit) |
Hook for user-defined conversion. More... | |
void | DumpHit () |
Prints members values on standard output. | |
Int_t | GetNPosHits () |
Gets the number of position hits. More... | |
GGSTPosHit * | GetPosHit (unsigned int iHit) |
Get the specified position hit. More... | |
Data Fields | |
Float_t | eDep |
Deposited energy. | |
Float_t | time |
Time of the hit. | |
Float_t | pathLength |
Path length of the hit. | |
Float_t | entrancePoint [3] |
Entrance point. | |
Float_t | exitPoint [3] |
Exit point. | |
Float_t | entranceMomentum [3] |
Entrance momentum. | |
Float_t | entranceEnergy |
Entrance kinetic energy. | |
Int_t | trackID |
GEANT4 track ID. | |
Int_t | parentID |
GEANT4 parent ID. | |
Int_t | particlePdg |
Particle PDG ID. | |
Friends | |
class | GGSHitsAction |
class | GGSTHitsReader |
Class to store G4 particle hits.
This class is used to write on ROOT files the informations stored in GGSPartHit. It inherits form TObject and has data members corresponding to those of GGSPartHit.
Definition at line 82 of file GGSTHits.h.
void GGSTPartHit::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 91 of file GGSTHits.cpp.
Int_t GGSTPartHit::GetNPosHits | ( | ) |
Gets the number of position hits.
Definition at line 166 of file GGSTHits.cpp.
GGSTPosHit * GGSTPartHit::GetPosHit | ( | unsigned int | iHit | ) |
Get the specified position hit.
iHit | The desired hit. |
Definition at line 175 of file GGSTHits.cpp.
|
inlinevirtual |
Hook for user-defined conversion.
Derived classes can override this method to perform custom conversion of the simulation data stored in partHit.
intHit | Reference to the particle hit object. It might refer to a class derived from GGSPartHit if that's what's actually in use. |
Definition at line 120 of file GGSTHits.h.