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.
Long_t nel = tree->Draw(“y:x”,"",“profs”)
Root has plotted 4 markers.
Now I get the values back into vectors:
Double_t *y = tree->GetV1();
Double_t *x = tree->GetV2();
root  for (Int_t i=0 ; i<nel ; i++) std::cout<<x[i]<<" " << y[i]<<std::endl ;
I got the 8 values without averages!!