diff --git a/macros/CCEScan/ratioFit_spline.C b/macros/CCEScan/ratioFit_spline.C index 694325b..530bb0f 100755 --- a/macros/CCEScan/ratioFit_spline.C +++ b/macros/CCEScan/ratioFit_spline.C @@ -24,7 +24,6 @@ #include "../../include/incFuncROOT.h" #include "../../include/incDrawROOT.h" #include "../../include/incGraphROOT.h" - #include "../../include/incIOROOT.h" @@ -37,7 +36,10 @@ #include "deplTool.h" - +// -d detector (TT/IT) +// -l layer (TTaX,TTaU,TTbV,TTbX, T[1-3]{X1,U,V,X2}) +// -v number of summed up strips +// -ns Do not save the value in the root file int voltageFit(int argc, char* argv[]); @@ -89,7 +91,7 @@ gStyle->SetTitleOffset(1.0,"X"); const char* diskVar = std::getenv ("DISK"); - const char* homeVar = std::getenv ("HOME"); + const char* homeVar = std::getenv ("CCEHOME"); int fill = 1944; TString det("TT"); @@ -98,13 +100,13 @@ bool notSave = false; for (int i=1; iGetChisquare(),fu_volt->GetNDF()); + /* Elena if (chi2ndf>0.000) { Info("voltageFit","scaling"); vr_adc_err_corr*=TMath::Sqrt(chi2ndf); } - + */ // Get new graph @@ -378,12 +381,12 @@ maxX = 250.0; } - + double maxY = 100.0; // 50.0; mg_volt->Draw("A"); mg_volt->GetXaxis()->SetLimits(0.0,maxX); mg_volt->GetXaxis()->SetTitle("#it{V}_{bias} [V]"); - mg_volt->SetMaximum(50.0); + mg_volt->SetMaximum(maxY); mg_volt->SetMinimum(0.0); mg_volt->GetYaxis()->SetTitle("Max. signal height [ADC value]");