How to extract information event by event

I have done some simulation with 10k events. I am storing the information by creating NTuple.
Finally I am getting an overall spectrum where the number of entries are 213234.

For each individual event there is a similar kind of distribution of time with lesser no of entries. How to get the information for every event from this final histogram?

Hello,

If I understand correctly, you want to create histograms of some quantities that are stored in a ntuple (a TTree I asume, concretely), right?

If yes, my suggestion would be to be to use RDataFrame. Quite some documentation is available at that page. Should there be any doubts, don’t hesitate to come back with specific questions.

Best,
Danilo