I’m trying to create a 1D histogram but getting this error “Replacing existing TH1: Energy (Potential memory leak)”. Some ideas would be highly appreciated.
BTW. If this is the same tree as in the “InteractionsII.root” file, instead of: for (Long64_t pdgindex=0; pdgindex<28;pdgindex++)
you need: for (Int_t pdgindex = 0; pdgindex < nf; pdgindex++) // if you use the "pdgf[nf]/I " branch inside
or: for (Int_t pdgindex = 0; pdgindex < ni; pdgindex++) // if you use the "pdgi[ni]/I " branch inside