Mean values

Hi all
I have a ntuple (recording events of simulation code)with the following structure
1 ,2 , 3 and 4th raws are arrays of floats
5th raw is float and last one is an array of floats.
OK reading the ntuple is simple but I m interesting if in ROOT exists a comant or class that permits directly to obtain the mean values and sigmas of all recoreded events

Thanks in advance


Since you tell me that you are able to read the ntuple, it should not
be a huge effort to keep track of

sum_i (x_i), sum_i (x_i^2) and sum_i (x_i)^2 :slight_smile: .