diff --git a/macros/CCEScan/ratioFit_spline.C b/macros/CCEScan/ratioFit_spline.C index 530bb0f..3d7f491 100755 --- a/macros/CCEScan/ratioFit_spline.C +++ b/macros/CCEScan/ratioFit_spline.C @@ -185,6 +185,7 @@ h_ratio->Sumw2(); std::vector v_ratio; + std::vector v_ratio_err; std::vector v_secRatio; for (int is = 0; is(v_ratio); + TVectorD vr_ratio_err = getROOTVector(v_ratio_err); TVectorD vr_secRatio = getROOTVector(v_secRatio); TFile* f_output = new TFile(fn_output.Data(),"UPDATE"); TString vn_ratio = TString::Format("v_ratio_%s",lay.Data()); + TString vn_ratio_err = TString::Format("v_ratio_err_%s",lay.Data()); TString vn_secRatio = TString::Format("v_sector_%s",lay.Data()); f_output->Delete(Form("%s;*",vn_ratio.Data())); + f_output->Delete(Form("%s;*",vn_ratio_err.Data())); f_output->Delete(Form("%s;*",vn_secRatio.Data())); vr_ratio.Write(vn_ratio.Data()); + vr_ratio_err.Write(vn_ratio_err.Data()); vr_secRatio.Write(vn_secRatio.Data()); f_output->Close();