diff --git a/macro/beamtime/mcbm2024/run_unpack_tsa_rich_only.C b/macro/beamtime/mcbm2024/run_unpack_tsa_rich_only.C index 651bfa2ff7fa0e6488a94f204f68e8f6b3df4c5e..a7ded4646662675b1ad8fbb62fd1ffeece07eaef 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); }