How to access data from root file

Hello to everyone!

I have a root file which apparently contains vectors.
I want to select specific data(meaning a certain leaf from a tree) and find the mean value of a vector.
For every event, there will be some mean values and eventually I would like to make a histo of mean-value-variable.

Any help would be welcome!

Thank you in advance! :slight_smile:

Hi,

Try:tree->Draw("Sum$(vec)/Length$(vec)")

Cheers,
Philippe.