kkabita
February 11, 2022, 10:10am
1
I have a 1D plot that needs to be fit by a double gaus function. Then , I need the integral (counts under the curve) for each of the gaus fir separately. Please suggest.
ROOT Forum → Search → “gausn(3)”
A simple, standalone dedicated simulation (a “toy MC”) can be found here:
Play with a simple, dedicated simulation (a “toy MC”).
The histogram is filled with each component separately (I guess, it is the preferred method):
{
Bool_t bg_pol2 = kFALSE; // simulate a "pol2" or a "broken line" background
// gRandom->SetSeed(0); // make it "really random"
// gStyle->SetOptFit(); // print fit parameters in the statistics box
ROOT::Math::MinimizerOptions::SetDefaultMinimizer("Minuit2");
Int_t n = 160; // number of bins
Double_t xl = 380., xr = xl + n; // make s…
system
Closed
February 25, 2022, 1:25pm
3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.