diff --git a/macros/CCEScan/voltageFit_spline.C b/macros/CCEScan/voltageFit_spline.C index fe6be51..a97242b 100755 --- a/macros/CCEScan/voltageFit_spline.C +++ b/macros/CCEScan/voltageFit_spline.C @@ -486,7 +486,7 @@ mg_volt->SetMinimum(0.0); mg_volt->GetYaxis()->SetTitle("Charge Equivalent [ADC value]"); - Int_t err_n = 203; + Int_t err_n = 2 * (Int_t)maxY + 3; Double_t err_x[err_n], err_y[err_n]; for (int i=0; i