From b4e72d23e7f4d8c19e30e4712f6b5d53e7d1514b Mon Sep 17 00:00:00 2001 From: "P.-A. Loizeau" <p.-a.loizeau@gsi.de> Date: Thu, 25 Apr 2024 11:53:24 +0200 Subject: [PATCH] [mcbm 2024] in rich only macro, allow switch on/off overlap MS --- macro/beamtime/mcbm2024/run_unpack_tsa_rich_only.C | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/macro/beamtime/mcbm2024/run_unpack_tsa_rich_only.C b/macro/beamtime/mcbm2024/run_unpack_tsa_rich_only.C index 651bfa2ff7..a7ded46466 100644 --- a/macro/beamtime/mcbm2024/run_unpack_tsa_rich_only.C +++ b/macro/beamtime/mcbm2024/run_unpack_tsa_rich_only.C @@ -38,7 +38,7 @@ std::string defaultSetupName = "mcbm_beam_2021_07_surveyed"; void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid = 0, std::string setupName = defaultSetupName, std::int32_t nevents = -1, bool bBmoninTof = false, - std::string outpath = "data/") + std::string outpath = "data/", bool bIgnoreOverlapMs = true) { // ======================================================================== @@ -492,6 +492,8 @@ void run_unpack_tsa(std::vector<std::string> infile = {"test.tsa"}, UInt_t runid // Enable full time sorting instead sorting per FLIM link unpack->SetTimeSorting(true); + if (richconfig) richconfig->SetDoIgnoreOverlappMs(bIgnoreOverlapMs); + // if (bmonconfig) unpack->SetUnpackConfig(bmonconfig); // if (stsconfig) unpack->SetUnpackConfig(stsconfig); // if (muchconfig) unpack->SetUnpackConfig(muchconfig); @@ -801,8 +803,8 @@ std::shared_ptr<CbmTofUnpackMonitor> GetTofMonitor(std::string treefilename, boo void run_unpack_tsa_rich_only(std::string infile = "test.tsa", UInt_t runid = 0, std::string setupName = defaultSetupName, std::int32_t nevents = -1, - bool bBmoninTof = false, std::string outpath = "data/") + bool bBmoninTof = false, std::string outpath = "data/", bool bIgnoreOverlapMs = false) { std::vector<std::string> vInFile = {infile}; - return run_unpack_tsa(vInFile, runid, setupName, nevents, bBmoninTof, outpath); + return run_unpack_tsa(vInFile, runid, setupName, nevents, bBmoninTof, outpath, bIgnoreOverlapMs); } -- GitLab