diff --git a/macros/CCEScan/voltageFit_paper.C b/macros/CCEScan/voltageFit_paper.C index 3d0d5cb..7818655 100755 --- a/macros/CCEScan/voltageFit_paper.C +++ b/macros/CCEScan/voltageFit_paper.C @@ -20,6 +20,7 @@ // ROOT include #include "../../include/incBasicROOT.h" +#include "../../include/incHistROOT.h" #include "../../include/incFuncROOT.h" #include "../../include/incDrawROOT.h" #include "../../include/incGraphROOT.h" @@ -445,8 +446,10 @@ // Create Spline with zero first and second derivate TSpline5* s5_volt = new TSpline5("s5_volt",ge_volt,"b2 e1 e2",0.0,0.0,0.0,0.0); + TSpline3* s3_volt = new TSpline3("s3_volt",ge_volt,"b2 e1 e2",0.0,0.0); s5_volt->SetLineColor(kRed); + s3_volt->SetLineColor(kBlue); // Get the value for the depletion voltage @@ -458,7 +461,9 @@ // Get depletion voltage double Vdepl_val = STTool::GetX(s5_volt,tarADC_val,10.0,400.0); - + double Vdepl_val_s3 = STTool::GetX(s3_volt,tarADC_val,10.0,400.0); + Printf("\t\t Spline5: %6.2f \t\t Spline3: %6.2f", Vdepl_val, Vdepl_val_s3); + // Get the uncertainty on the sampling point // with 1/distance^2 weighted uncertainty on the ADC values of the two closest data points