SetEntry() vs SetLocalEntry()

I’m pretty new to ROOT, got a question about using TChains with MakeSelector.

By default, near the start of the Process() method in the MakeSelector code, it by default calls SetEntry(entry). A friend running a MakeSelector macro over a TChain found that she had to modify this line to SetLocalEntry(entry) so that it would run the Process() method respecting the start of the current tree in the chain.

My question is, is SetEntry() ever useful, or can it always be replaced by SetLocalEntry()? If SetLocalEntry() is always best, why does MakeSelector use SetEntry() by default?

Here we can read that if a TEntryList is set, SetLocalEntry() is equivalent to SetEntry().

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.