From 4623338d032317769e6a75fa545c1c2a3f5c2ff8 Mon Sep 17 00:00:00 2001 From: P-A Loizeau <p.-a.loizeau@gsi.de> Date: Mon, 16 Nov 2020 12:18:11 +0100 Subject: [PATCH] mCBM 2020: fix path to unp par file for MUCH --- macro/beamtime/mcbm2020/unpack_tsa_mcbm_kronos.C | 4 ++-- macro/beamtime/mcbm2020/unpack_tsa_mcbm_mfles.C | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/macro/beamtime/mcbm2020/unpack_tsa_mcbm_kronos.C b/macro/beamtime/mcbm2020/unpack_tsa_mcbm_kronos.C index f39fbea579..bf4f96786f 100644 --- a/macro/beamtime/mcbm2020/unpack_tsa_mcbm_kronos.C +++ b/macro/beamtime/mcbm2020/unpack_tsa_mcbm_kronos.C @@ -561,7 +561,7 @@ void unpack_tsa_mcbm_kronos(UInt_t uRunIdx = 99999, std::cout << "MUCH: Feb by feb time offset correction......" << std::endl; UInt_t uRun, uNx; Double_t offset; - ifstream infile_off("../mcbm2020/parameters/time_offset_much.txt"); + ifstream infile_off(paramDir + "/parameters/time_offset_much.txt"); if (!infile_off) { std::cout << "can not open time offset MUCH parameter List" << std::endl; return kFALSE; @@ -574,7 +574,7 @@ void unpack_tsa_mcbm_kronos(UInt_t uRunIdx = 99999, infile_off.close(); std::cout << "masking noisy channels......" << std::endl; UInt_t uChan = 0; - ifstream infile_noise("../mcbm2020/parameters/much_noisy_channel_list.txt"); + ifstream infile_noise(paramDir + "parameters/much_noisy_channel_list.txt"); if (!infile_noise) { std::cout << "can not open MUCH noisy channel List" << std::endl; return kFALSE; diff --git a/macro/beamtime/mcbm2020/unpack_tsa_mcbm_mfles.C b/macro/beamtime/mcbm2020/unpack_tsa_mcbm_mfles.C index f52e92992a..cdfd4bbd3f 100644 --- a/macro/beamtime/mcbm2020/unpack_tsa_mcbm_mfles.C +++ b/macro/beamtime/mcbm2020/unpack_tsa_mcbm_mfles.C @@ -534,7 +534,7 @@ void unpack_tsa_mcbm_mfles(UInt_t uRunId = 0, std::cout << "MUCH: Feb by feb time offset correction......" << std::endl; UInt_t uRun, uNx; Double_t offset; - ifstream infile_off("../mcbm2020/parameters/time_offset_much.txt"); + ifstream infile_off(paramDir + "/parameters/time_offset_much.txt"); if (!infile_off) { std::cout << "can not open time offset MUCH parameter List" << std::endl; return kFALSE; @@ -547,7 +547,7 @@ void unpack_tsa_mcbm_mfles(UInt_t uRunId = 0, infile_off.close(); std::cout << "masking noisy channels......" << std::endl; UInt_t uChan = 0; - ifstream infile_noise("../mcbm2020/parameters/much_noisy_channel_list.txt"); + ifstream infile_noise(paramDir + "parameters/much_noisy_channel_list.txt"); if (!infile_noise) { std::cout << "can not open MUCH noisy channel List" << std::endl; return kFALSE; -- GitLab