diff --git a/macros/CCEScan/voltageFit_spline.C b/macros/CCEScan/voltageFit_spline.C index 946fd24..8b5ba12 100755 --- a/macros/CCEScan/voltageFit_spline.C +++ b/macros/CCEScan/voltageFit_spline.C @@ -471,10 +471,12 @@ maxX = 250.0; } + 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("Charge Equivalent [ADC value]"); @@ -482,7 +484,7 @@ Double_t err_x[err_n], err_y[err_n]; for (int i=0; iEval(err_x[i]); } err_x[err_n-2] = err_x[err_n-3]; @@ -497,7 +499,7 @@ err_poly->Draw("f"); for (int i=0; iEval(err_x[i]); } err_x[err_n-2] = err_x[err_n-3]; @@ -513,7 +515,7 @@ TLine* val_line = new TLine(Vdepl_val,0.0,Vdepl_val,s5_volt->Eval(Vdepl_val)); val_line->DrawClone(); - val_line = new TLine(Vdepl_val,0.0,Vdepl_val,50.0); + val_line = new TLine(Vdepl_val,0.0,Vdepl_val,maxY); val_line->SetLineStyle(2); val_line->DrawClone();