15 _inelastic(NULL), _quasiElastic(NULL), _hadrIntChain(NULL) {
30 _hadrIntChain = hadrIntChain;
31 if (_hadrIntChain->SetBranchAddress(
"inelastic", &_inelastic) == 0
32 && _hadrIntChain->SetBranchAddress(
"quasiElastic", &_quasiElastic) == 0) {
43 if (entry != _hadrIntChain->GetEntries()) {
44 _hadrIntChain->GetEntry(entry);
52 for (
int i = 0; i < _inelastic->GetEntries(); i++) {
66 for (
int i = 0; i < _quasiElastic->GetEntries(); i++) {
67 if (((
GGSTHadrIntInfo*) (_quasiElastic->At(i)))->originalTrackID == trackID)
80 for (
int i = 0; i < _quasiElastic->GetEntries(); i++) {
Int_t originalTrackID
Track ID of the original primary particle.
Int_t GetNQuasiElastic(Int_t trackID=1)
Retrieves the number of quasi-elastic interactions for the given primary.
GGSTHadrIntInfo * GetQuasiElastic(Int_t nQE, Int_t trackID=1)
Retrieves a quasi-elastic interaction for the given primary.
void GetEntry(Long64_t entry)
A simple class to carry informations about hadronic interactions.
bool SetChain(TChain *hadrIntChain)
Sets the chain.
GGSTHadrIntReader()
Constructor.
~GGSTHadrIntReader()
Destructor.
GGSTHadrIntInfo * GetInelastic(Int_t trackID=1)
Retrieves the inelastic interaction for the given primary.