Separating trees after merging them with Hadd?

I’ve used hadd to merge multiple trees (each corresponding to one event with several entries) into one, now I need to print out a histogram corresponding to one event with a given number. Do you know how could I see which of the entries in the tree belong to which event?

Thanks in advance!