Dear Experts,
I have been having an issue when using Root v5.26.00
When I run an interactive session,
I do
TChain ch("treename");
ch->Add("list.root");
TString f = "EventNumber==199817";
ch->Draw("(">>eList",f);
eList->Print();
and joyfully receive:
EventList:eList/EventNumber == 199817, number of entries =1, size=1000
as expected.
If I try to do the same with compiled ROOT code (in a macro that was otherwise working perfectly well), I see:
TEventList eList;
TString f = "EventNumber==199817";
class->fChain->Draw(">>eList",f);
eList->Print();
EventList:eList/EventNumber == 199817, number of entries =0, size=100
Is this to be expected or is this a bug?
The purpose is to find the entry number of an entry with EventNumber==X.
The only other note-worthy point is that I access the TChain in the macro as part of the MakeClass skeleton but as I said, I’m fairly sure the Chain was accessing the files correctly from before.
Does anyone know why this might be happening? I have also tried TEntryList.
Many Thanks,
Chris