I have a question about the implementation of TChain::GetEntryWithIndex. It seems to me, based on the online documentation, that the behavior of the function is completely changed from the TTree function, even though TChain of course inherits from TTree.
I.e. if I have a TTree indexed by run and event, to read a certain event in the tree I would call
whereas if I had a chain of those same trees, I would have to call
int entry = chain->GetEntryWithIndex(run, event);
I’m hardly an expert, but this seems to break the polymorphism, which is a definite no-no. It seems to me that what is currently TChain::GetEntryWithIndex should in fact be TChain::GetEntryNumberWithIndex.
On a related matter, the documentation says that this function will not work on a chain that has friends. Does this also mean that, if I have two chains which contain indexes and are friends, that I cannot use Draw, Scan, etc. functions? This seems to be the behavior I’m seeing right now, and would like to check.