Hi everybody,
I need to get the mean and RMS values from a X and Y projection. To illustrate my problem I attached a reduced version of my code generating random data instead my real data.
I have an array [11][3] of TH2F (11 detectors ans 3 particles). I do a loop over detectors and project data in a [3] dimension TH1D array.
For the first projection the GetMean and GetRMS are good. But for the second detector, as TH1D is reset and filled again with the projected contents of the TH2D, the Mean and RMS seem to be wrong.
To run the code I use v5.22
root[] .L histo_tmp.C
root[] histo_tmp()
Any idea ?
Thanks
Juan
histo_tmp.C (6.53 KB)