From 93d7cec0f5b7f1f0480b9fbf2496f8db90a943e5 Mon Sep 17 00:00:00 2001 From: Michal Broz Date: Sun, 16 Nov 2025 13:41:11 +0100 Subject: [PATCH 1/2] Switch to store SG and DG separately --- PWGUD/TableProducer/SGCandProducer.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PWGUD/TableProducer/SGCandProducer.cxx b/PWGUD/TableProducer/SGCandProducer.cxx index df466cb95b3..4d88fede992 100644 --- a/PWGUD/TableProducer/SGCandProducer.cxx +++ b/PWGUD/TableProducer/SGCandProducer.cxx @@ -84,6 +84,8 @@ struct SGCandProducer { Configurable IsGoodVertex{"IsGoodVertex", false, "Select FT0 PV vertex matching"}; Configurable ITSTPCVertex{"ITSTPCVertex", true, "reject ITS-only vertex"}; // if one wants to look at Single Gap pp events Configurable> generatorIds{"generatorIds", std::vector{-1}, "MC generatorIds to process"}; + Configurable storeSG{"storeSG", true, "Store SG events in the output"}; + Configurable storeDG{"storeDG", true, "Store DG events in the output"}; Configurable isGoodRCTCollision{"isGoodRCTCollision", true, "Check RCT flags for FT0,ITS,TPC and tracking"}; Configurable isGoodRCTZdc{"isGoodRCTZdc", false, "Check RCT flags for ZDC if present in run"}; @@ -355,7 +357,7 @@ struct SGCandProducer { LOGF(info, "No Newbc %i", bc.globalBC()); } getHist(TH1, histdir + "/Stat")->Fill(issgevent + 10, 1.); - if (issgevent <= 2) { + if ((storeDG && issgevent==o2::aod::sgselector::DoubleGap) || (storeSG && (issgevent==o2::aod::sgselector::SingleGapA || issgevent==o2::aod::sgselector::SingleGapC))) { if (verboseInfo) LOGF(info, "Current BC: %i, %i, %i", bc.globalBC(), newbc.globalBC(), issgevent); if (sameCuts.minRgtrwTOF()) { From 6c0eb448298d99421213343823feb945ca95fa1d Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Sun, 16 Nov 2025 12:42:52 +0000 Subject: [PATCH 2/2] Please consider the following formatting changes --- PWGUD/TableProducer/SGCandProducer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGUD/TableProducer/SGCandProducer.cxx b/PWGUD/TableProducer/SGCandProducer.cxx index 4d88fede992..c3cb33cb43e 100644 --- a/PWGUD/TableProducer/SGCandProducer.cxx +++ b/PWGUD/TableProducer/SGCandProducer.cxx @@ -357,7 +357,7 @@ struct SGCandProducer { LOGF(info, "No Newbc %i", bc.globalBC()); } getHist(TH1, histdir + "/Stat")->Fill(issgevent + 10, 1.); - if ((storeDG && issgevent==o2::aod::sgselector::DoubleGap) || (storeSG && (issgevent==o2::aod::sgselector::SingleGapA || issgevent==o2::aod::sgselector::SingleGapC))) { + if ((storeDG && issgevent == o2::aod::sgselector::DoubleGap) || (storeSG && (issgevent == o2::aod::sgselector::SingleGapA || issgevent == o2::aod::sgselector::SingleGapC))) { if (verboseInfo) LOGF(info, "Current BC: %i, %i, %i", bc.globalBC(), newbc.globalBC(), issgevent); if (sameCuts.minRgtrwTOF()) {