Get entry by event number

Hello,

I have two root files containing trees of event data with different sets of corrections applied. I’d like to see the effect of these corrections on each event. A branch called event number is stored in the tree. What would be an efficient way to retreive a single event’s data for a given event number without sequentially going through every event until a match with the event number is found?

Thanks.

See TTree::BuildIndex.

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