Find peaks on 100 datasets

Hi! I want to determine the x0 coordinates of 1 gaussian peak on each of the 100 datasets (text files where the points y and x are). And then I want to plot 1 TGraph errors, where the dependence of x0 on the parameter t will be presented. Is there an easy way to do it? Pls help

ROOT Version: Not Provided
Platform: Linux
Compiler: Make


Yours looks like an interesting challenge.
You can transform all 100 datasets in TGraph instances in a loop, do your fits, and save the parameters in a TGraphErrors.
You can have a look to the documentation of the aforementioned classes as a start.


1 Like