27 _hadrIntChain = hadrIntChain;
28 if (_hadrIntChain->SetBranchAddress(
"inelastic", &_inelastic) == 0 &&
29 _hadrIntChain->SetBranchAddress(
"quasiElastic", &_quasiElastic) == 0) {
38 if (entry != _hadrIntChain->GetEntries()) {
39 _hadrIntChain->GetEntry(entry);
47 for (
int i = 0; i < _inelastic->GetEntries(); i++) {
61 for (
int i = 0; i < _quasiElastic->GetEntries(); i++) {
62 if (((
GGSTHadrIntInfo *)(_quasiElastic->At(i)))->originalTrackID == trackID)
75 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.