GGS(GenericGEANT4Simulation)Software
2.7.0
|
Base class for storing G4 particle hits. More...
#include <GGSTHits.h>
Public Member Functions | |
GGSTPartHitBase () | |
Constructor. | |
~GGSTPartHitBase () | |
Destructor. | |
void | Clear (Option_t *opt) |
Resets the data members. More... | |
Int_t | GetNPosHits () |
Prints members values on standard output. More... | |
GGSTPosHitBase * | GetPosHit (unsigned int iHit) |
Get the specified position hit. More... | |
std::string | GetPosHitsClassName () |
Gets the name of the class of the position hits. More... | |
Data Fields | |
Float_t | eDep |
Deposited energy. | |
Friends | |
class | GGSHitsAction |
class | GGSTHitsReader |
Base class for storing G4 particle hits.
This class is used to write on ROOT files the informations stored in GGSPartHit. It inherits form TObject and has just one data member for energy deposit.
Definition at line 106 of file GGSTHits.h.
void GGSTPartHitBase::Clear | ( | Option_t * | opt | ) |
Resets the data members.
Will clear also the TClonesArray of position hits by passing the opt
parameter (i.e. if opt
is "C" then also the position hits will be cleared).
opt | The cleaning option. |
Definition at line 78 of file GGSTHits.cpp.
Int_t GGSTPartHitBase::GetNPosHits | ( | ) |
Prints members values on standard output.
Gets the number of position hits.
Definition at line 86 of file GGSTHits.cpp.
GGSTPosHitBase * GGSTPartHitBase::GetPosHit | ( | unsigned int | iHit | ) |
Get the specified position hit.
iHit | The desired hit. |
Definition at line 93 of file GGSTHits.cpp.
std::string GGSTPartHitBase::GetPosHitsClassName | ( | ) |
Gets the name of the class of the position hits.
Definition at line 101 of file GGSTHits.cpp.