Hi experts.
I wanna fit the histogram fixing the initial parameters.
So i use this code.
double initparms[] = {5, 3.2, 6.76268e-1};
TF1 *f = new TF1(“f”,“gaus”);
f->SetParameters(initparms);
f->FixParameter(2,3.2);
f->FixParameter(3,6.76268e-1);
f->SetLineColor(kBlue);
f->SetLineStyle(3);
N_37->Fit(f,“R”,“I”,0,6);
Thanks for reply!
I did as you said, but it shows that only the 3rd parameter ,sigma, is fixed. But even this value is different from the value 6.76268e-1 i entered.