From f91f22103852756a1359aca960b34bdae8b7b336 Mon Sep 17 00:00:00 2001 From: Yero1990 <cyero002@fiu.edu> Date: Sun, 18 Jun 2017 15:31:15 -0400 Subject: [PATCH] minor fixes to shms dc calib (#147) --- CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C | 4 ++-- .../scripts/get_pdc_time_histo_tzero_corrected_v2.C | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C b/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C index 58dd20f9..81c97363 100644 --- a/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C +++ b/CALIBRATION/shms_dc_calib/scripts/get_LookUp_Values.C @@ -104,11 +104,11 @@ void get_LookUp_Values() { ofs << setprecision(5) << lookup_value[ip] << fixed << ","; } - else if (bin_count >16 && bin_count < 274) { + else if (bin_count >16 && bin_count <= 274) { ofs << setprecision(5) << lookup_value[ip] << ((bin_count+1) % 20 ? "," : "\n") << fixed; } else { - ofs << setprecision(5) << lookup_value[ip] << fixed << endl; + ofs << setprecision(5) << lookup_value[ip] << fixed << endl; } } diff --git a/CALIBRATION/shms_dc_calib/scripts/get_pdc_time_histo_tzero_corrected_v2.C b/CALIBRATION/shms_dc_calib/scripts/get_pdc_time_histo_tzero_corrected_v2.C index 74a26cb6..8feed031 100644 --- a/CALIBRATION/shms_dc_calib/scripts/get_pdc_time_histo_tzero_corrected_v2.C +++ b/CALIBRATION/shms_dc_calib/scripts/get_pdc_time_histo_tzero_corrected_v2.C @@ -116,7 +116,7 @@ void get_pdc_time_histo_tzero_corrected_v2() TFile *f = new TFile(file_name, "READ"); //create new file - TFile *g = new TFile(Form("shms_tzero_corr_histo.root", run_NUM), "RECREATE"); // create new file to store histo + TFile *g = new TFile(Form("../root_files/"+run+"/shms_tzero_corr_histo.root", run_NUM), "RECREATE"); // create new file to store histo f->cd(); -- GitLab