Skip to content
Snippets Groups Projects
Commit f91f2210 authored by Yero1990's avatar Yero1990 Committed by Eric Pooser
Browse files

minor fixes to shms dc calib (#147)

parent 9c2524cd
No related branches found
No related tags found
No related merge requests found
...@@ -104,11 +104,11 @@ void get_LookUp_Values() { ...@@ -104,11 +104,11 @@ void get_LookUp_Values() {
ofs << setprecision(5) << lookup_value[ip] << fixed << ","; 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; ofs << setprecision(5) << lookup_value[ip] << ((bin_count+1) % 20 ? "," : "\n") << fixed;
} }
else { else {
ofs << setprecision(5) << lookup_value[ip] << fixed << endl; ofs << setprecision(5) << lookup_value[ip] << fixed << endl;
} }
} }
......
...@@ -116,7 +116,7 @@ void get_pdc_time_histo_tzero_corrected_v2() ...@@ -116,7 +116,7 @@ void get_pdc_time_histo_tzero_corrected_v2()
TFile *f = new TFile(file_name, "READ"); TFile *f = new TFile(file_name, "READ");
//create new file //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(); f->cd();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment