When doing a Draw(“y:x”,"",“profs”), ROOT is doing already the averaging as expected, calculating the average and RMS of the several “y” values at the same “x” ordinate. When I try to get the information back in a vector, I get the raw data, not the average.
Example:
Long_t nel = tree->Draw(“y:x”,"",“profs”)
(Long64_t)8
Root creates and fills a profile histogram with the y:x values then it plots it … that what you see.
When you do GetV1() … you get the raw data as shown when you issue the command
Looping over htemp works, as long as the values I am interested on are different from zero. I mean, htemp is booked with a number of bins (100?) and some of those bins will be empty. So then I have to filter out bins with 0 bin entries.