What type should I use for long items in SetBranchAddress?

In my algorithm I define these two branches using

NTuple::Item m_runNo11;
NTuple::Item m_evtNo11;

Right now, I want to use SetBranchAddress to read out the data in the root file, then what type of variable should I use?

Int_t runNo11,evtNo11;

Thank you very much :)

Use the same types that you used to create the branches.
Try (it should return the list of branches and their types): ExcluRealdata->Print();

Thank you very much. The problem seems to come from the version of the ROOT. I changed the version from root5 to root6.24 then everything is fine…

1 Like