GGS(GenericGEANT4Simulation)Software
2.7.0
|
Class for reading output of GGSMCTruthAction. More...
#include <GGSTMCTruthReader.h>
Public Member Functions | |
GGSTMCTruthReader () | |
Constructor. | |
~GGSTMCTruthReader () | |
Destructor. | |
bool | SetChain (TChain *mcTruthChain) |
Sets the chain. More... | |
void | GetEntry (Long64_t entry) |
GGSTParticle * | GetPrimaryParticle (UInt_t particleNumber) |
Returns a primary particle. More... | |
UInt_t | GetNPrimaries () |
Returns the number of primaries in current event. More... | |
UInt_t | GetNDiscarded () |
Returns the number of discarded events before the current one. More... | |
![]() | |
virtual | ~GGSTChainReader () |
Destructor. | |
Class for reading output of GGSMCTruthAction.
This class provides methods to read the information about MC truth as saved by GGSMCTruthAction.
Definition at line 25 of file GGSTMCTruthReader.h.
|
virtual |
@ brief Reads the specified entry from the MC truth branch.
entry | The desired entry. |
Implements GGSTChainReader.
Definition at line 33 of file GGSTMCTruthReader.cpp.
|
inline |
Returns the number of discarded events before the current one.
Definition at line 76 of file GGSTMCTruthReader.h.
|
inline |
Returns the number of primaries in current event.
Definition at line 64 of file GGSTMCTruthReader.h.
|
inline |
Returns a primary particle.
particleNumber | The particle to retrieve. |
Definition at line 53 of file GGSTMCTruthReader.h.
|
virtual |
Sets the chain.
This method sets the MC truth chain, from which the informations will be read.
mcTruthChain | The chain containing the MC truth. |
Implements GGSTChainReader.
Definition at line 22 of file GGSTMCTruthReader.cpp.