diff --git a/macros/CCEScan/voltageFit_spline.C b/macros/CCEScan/voltageFit_spline.C index a97242b..31a1e49 100755 --- a/macros/CCEScan/voltageFit_spline.C +++ b/macros/CCEScan/voltageFit_spline.C @@ -385,7 +385,7 @@ // Scale them Info("voltageFit_spline","#chi^{2}/ndf: %6.2f/%d",fu_volt->GetChisquare(),fu_volt->GetNDF()); - /*Michele + /*Michele, confirmed in 8/31 2017 if (chi2ndf>0.00) { Info("voltageFit_spline","scaling"); vr_adc_err_corr*=TMath::Sqrt(chi2ndf); @@ -419,6 +419,7 @@ int iFirst = -1; int iSecon = -1; // Excluding first and last point as they have been artifically added + //Looking for the two voltages that are closest to Vdepl for(int i=1; iGetParameter("A_{0}")/s5_volt->Derivative(0.0); + double Vdepl_sys1 = Vdepl_val-fu_volt->GetParameter("A_{0}")/s5_volt->Derivative(0.0); //Wrong, sometimes this is a bad indication! // Alternative determination of the systematic uncertainty by taking the // difference between the determined depletion voltage and the extracted value from the sigmoid function