GGS(GenericGEANT4Simulation)Software
2.7.0
|
Class for reading output of GGSHadrIntAction. More...
#include <GGSTHadrIntReader.h>
Public Member Functions | |
GGSTHadrIntReader () | |
Constructor. | |
~GGSTHadrIntReader () | |
Destructor. | |
bool | SetChain (TChain *hadrIntChain) |
Sets the chain. More... | |
void | GetEntry (Long64_t entry) |
GGSTHadrIntInfo * | GetInelastic (Int_t trackID=1) |
Retrieves the inelastic interaction for the given primary. More... | |
Int_t | GetNQuasiElastic (Int_t trackID=1) |
Retrieves the number of quasi-elastic interactions for the given primary. More... | |
GGSTHadrIntInfo * | GetQuasiElastic (Int_t nQE, Int_t trackID=1) |
Retrieves a quasi-elastic interaction for the given primary. More... | |
![]() | |
virtual | ~GGSTChainReader () |
Destructor. | |
Class for reading output of GGSHadrIntAction.
This class provides methods to read the information about hadronic interactions as saved by GGSHadrIntAction.
Definition at line 26 of file GGSTHadrIntReader.h.
|
virtual |
@ brief Reads the specified entry from the hadronic interaction branch.
entry | The desired entry. |
Implements GGSTChainReader.
Definition at line 37 of file GGSTHadrIntReader.cpp.
GGSTHadrIntInfo * GGSTHadrIntReader::GetInelastic | ( | Int_t | trackID = 1 | ) |
Retrieves the inelastic interaction for the given primary.
trackID | The track ID of the primary particle. |
Definition at line 44 of file GGSTHadrIntReader.cpp.
Int_t GGSTHadrIntReader::GetNQuasiElastic | ( | Int_t | trackID = 1 | ) |
Retrieves the number of quasi-elastic interactions for the given primary.
trackID | The track ID of the primary particle. |
Definition at line 58 of file GGSTHadrIntReader.cpp.
GGSTHadrIntInfo * GGSTHadrIntReader::GetQuasiElastic | ( | Int_t | nQE, |
Int_t | trackID = 1 |
||
) |
Retrieves a quasi-elastic interaction for the given primary.
Note that ordering is random, so first interaction is not guaranteed to be happened before the second, and so on.
nQE | The desired quasi-elastic interaction. |
trackID | The track ID of the primary particle. |
Definition at line 71 of file GGSTHadrIntReader.cpp.
|
virtual |
Sets the chain.
This method sets the hadronic interactions chain, from which the informations will be read.
hadrIntChain | The chain containing the hadronic interactions. |
Implements GGSTChainReader.
Definition at line 25 of file GGSTHadrIntReader.cpp.