Unsetting a TEventList in a TChain

I think this issue was actually related to trying to use a TEntryList on a TChain (see [url]TEntryList and TChain

When I retry this simply as stated above, I get the expected behaviour. However, when I use the TEventList to make the TChain return a TEntryList, strangeness happens. Basically, the cut is only properly applied to the first file in the chain.

I think I was mistaking this for failure of the reset of the TEventList. I’d like to be concrete about this and write exactly what happened here, but I don’t think I’ll have time.

Anyway, I now use a TEventList and loop through the original TChain by doing:

where “elist” is the TEventList and “count” is the iteration. I then reset the TEventList in the standard way, and it works.

I am not sure if this is actually the most efficient way to loop through the tree, and I am concerned about that because my data set is somewhat large. I do have some experience instead writing an implementation of a TSelector and running through TChain::Process (like example $ROOTSYS/tutorials/hist/h1Analysis), but I don’t know if this is likely to be faster.

I would appreciate any comments on the speed issues I just mentioned.