diff --git a/macro/beamtime/mcbm2020/unpack_tsa_mcbm_kronos.C b/macro/beamtime/mcbm2020/unpack_tsa_mcbm_kronos.C index f39fbea579692fe02339e2dff06d8ec6c9191a26..bf4f96786fd4c0a9412d6e1d4aee13daf4dfbd17 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 f52e92992a6fb07d08b22fb302406a556f60cd5e..cdfd4bbd3f9df0d8fdc2268e1b7b6a0325b01c3a 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;