TTreeReader aReader( tree );
TTreeReaderValue...
while ( aReader.Next() )
{
// do some stuff here
}
aReader will loop through all the entries. Can it loop just through the entries in the list? (I have seen that could be done with SetBranchAddress, but I was told to do it with TTreeReader).
Looks like this is simply missing. I’ll have to implement it, didn’t get to it yet. I still have hopes for getting it done tomorrow. I will keep you posted!
Until then you can use this:
while (true) { /* instead of while aReader.Next() */
Long64_t entryNumber = chain->GetEntryNumber(entry);
if (entryNumber < 0) break;
localEntry = chain->LoadTree(entryNumber);
if (localEntry < 0) break;
aReader.SetLocalEntry(localEntry);
...
I decided to claim that this is a new feature and as such should not go into v6.08 (but only into the master i.e. the future 6.10). But 6.08 will now print a warning message if it sees a TTree with a TEntryList - I hope that makes it clear.