Commit bb1c36b3 authored by Keerthi Nakkalil's avatar Keerthi Nakkalil
Browse files

Code works like a charm now!! Fit parameters are proper as well!

parent ba1d9068
......@@ -130,7 +130,7 @@ void timewalkfit(){
// cout << N <<std::endl;
TGraphErrors *graph = new TGraphErrors(N,TPtree->GetV1(),TPtree->GetV2(),0,TPtree->GetV3());
std::cout << icol << " " << irow << std::endl; //Correct values printed here..but text file still prints 255_255
// std::cout << icol << " " << irow << std::endl; //Correct values printed here..but text file still prints 255_255
auto fitmin = TMath::MinElement(graph->GetN(),graph->GetX());
// std::cout << "fitmin" << fitmin << std::endl;
......@@ -169,8 +169,8 @@ void timewalkfit(){
std::ofstream fitpars;
fitpars.open("fit_parameters.txt",std::ofstream::app);
fitpars << col << "\t" << row << "\t" << fitfuncTOA->GetParameter(2)
<< setw(10) << fitfuncTOA->GetParameter(0) << setw(10) << fitfuncTOA->GetParameter(1) << std::endl; //NO chi2/ndf for the time-being! Prints always 255 255 for col,row
fitpars << icol << "\t" << irow << "\t" << fitfuncTOA->GetParameter(2)
<< setw(10) << fitfuncTOA->GetParameter(0) << setw(10) << fitfuncTOA->GetParameter(1) << std::endl; //NO chi2/ndf for the time-being!
}
}
......
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