diff --git a/macros/CCEScan/pulseFit.C b/macros/CCEScan/pulseFit.C index d26270d..ee91c6e 100755 --- a/macros/CCEScan/pulseFit.C +++ b/macros/CCEScan/pulseFit.C @@ -269,11 +269,11 @@ Info("pulseFit","#chi^{2}/ndf: %6.2f/%d",fu_pulse->GetChisquare(),fu_pulse->GetNDF()); // Make PDG-like correction of the uncertainties - //Michele - if (chi2ndf>1.0) { - Info("pulseFit","scaling"); - vr_adc_err*=TMath::Sqrt(chi2ndf); - } + //Commented out by Michele - 8/31 2017 + //if (chi2ndf>1.0) { + // Info("pulseFit","scaling"); + // vr_adc_err*=TMath::Sqrt(chi2ndf); + //} //Michele TMultiGraph* mg_pulse = new TMultiGraph("mg_pulse","Pulse multigraph"); @@ -346,11 +346,12 @@ // Write the data and the plots - + while (!gSystem->Exec(Form("ls %s &> /dev/null",fn_dummy.Data()))) { Info("landauFit","Waiting until file is closed"); gSystem->Sleep(1000); } + gSystem->Exec(Form("touch %s &> /dev/null",fn_dummy.Data())); f_data = new TFile(fn_data.Data(),"UPDATE");