Commit 3d0253a8 authored by Keerthi Nakkalil's avatar Keerthi Nakkalil
Browse files

The fir parameter t is limited to 10*t and now the values are decently well...

The fir parameter t is limited to 10*t and now the values are decently well enough although chi2/ndf is terribly small 
parent eae42a90
......@@ -23,7 +23,7 @@ void tot_calib(TGraphErrors* graph){
int iymin=TMath::LocMin(graph->GetN(),graph->GetY());
cout << "iymin " << iymin << std::endl;
auto t = graph->GetPointX(iymin);
auto t = 0.5*graph->GetPointX(iymin);
cout << "t :" << " " << t << std::endl;;
auto testx = 0.5*fitmax;
......@@ -32,6 +32,7 @@ void tot_calib(TGraphErrors* graph){
cout << "c :" << " " << c <<std::endl;
// cout << a << " " << b << " " << t << " " << c << std::endl;
fitfuncTOT->SetParLimits(3,0,t*10); // so as to have no negetive values
fitfuncTOT->SetParameters(a,b,t,c);
graph->Fit(fitfuncTOT,"R");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment