GGS(GenericGEANT4Simulation)Software
2.7.0
|
A class to store MC truth informations on ROOT files. More...
#include <GGSTMCTruthInfo.h>
Public Member Functions | |
GGSTMCTruthInfo () | |
Constructor. | |
~GGSTMCTruthInfo () | |
Destructor. | |
UInt_t | GetNPrimaries () |
Retrieves the number of primaries in this event. More... | |
GGSTParticle * | GetPrimaryParticle (UInt_t particleNumber) |
Retrieves a primary particle. More... | |
void | AddPrimaryParticle (GGSTParticle *primaryParticle) |
Adds a primary particle to the particles' array. More... | |
void | Reset () |
Resets the object's properties. | |
Data Fields | |
Int_t | eventID |
The event ID. | |
UInt_t | nDiscarded |
The number of discarded + killed events the current event and the previous event saved in file. More... | |
A class to store MC truth informations on ROOT files.
Definition at line 20 of file GGSTMCTruthInfo.h.
void GGSTMCTruthInfo::AddPrimaryParticle | ( | GGSTParticle * | primaryParticle | ) |
Adds a primary particle to the particles' array.
primaryParticle | The particle to add. |
Definition at line 48 of file GGSTMCTruthInfo.cpp.
|
inline |
Retrieves the number of primaries in this event.
Definition at line 32 of file GGSTMCTruthInfo.h.
GGSTParticle * GGSTMCTruthInfo::GetPrimaryParticle | ( | UInt_t | particleNumber | ) |
Retrieves a primary particle.
particleNumber | The particle to retrieve (0 is first particle). |
Definition at line 38 of file GGSTMCTruthInfo.cpp.
UInt_t GGSTMCTruthInfo::nDiscarded |
The number of discarded + killed events the current event and the previous event saved in file.
In case some condition is imposed on event generation (eg. acceptance check), some events may be discarded or killed before one is considered "good" and actually saved on file. This member stores the number of discarded + killed events between the current event on the output file and the previous one.
Definition at line 66 of file GGSTMCTruthInfo.h.