From 34689d56806a32c907f40977b95000ec9afbf6f2 Mon Sep 17 00:00:00 2001 From: Daiki Sekihata Date: Tue, 17 Feb 2026 21:51:15 +0100 Subject: [PATCH] PWGEM/Dilepton: add flexibility in phiv selection for QC --- .../Dilepton/TableProducer/skimmerPrimaryElectronQC.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/PWGEM/Dilepton/TableProducer/skimmerPrimaryElectronQC.cxx b/PWGEM/Dilepton/TableProducer/skimmerPrimaryElectronQC.cxx index 46e98bf51ea..edae6eba189 100644 --- a/PWGEM/Dilepton/TableProducer/skimmerPrimaryElectronQC.cxx +++ b/PWGEM/Dilepton/TableProducer/skimmerPrimaryElectronQC.cxx @@ -36,7 +36,6 @@ #include "Math/Vector4D.h" #include -// #include #include using namespace o2; @@ -113,8 +112,10 @@ struct skimmerPrimaryElectronQC { } tighttrackcut; Configurable storeOnlyTrueElectronMC{"storeOnlyTrueElectronMC", false, "Flag to store only true electron in MC"}; - Configurable maxMee{"maxMee", 0.005, "max mee for pi0 -> ee"}; - Configurable maxPhiV{"maxPhiV", M_PI / 2, "max phiv for pi0 -> ee"}; + Configurable minMee{"minMee", 0.000, "min mee for pi0 -> ee or gamma -> ee"}; + Configurable maxMee{"maxMee", 0.005, "max mee for pi0 -> ee or gamma -> ee"}; + Configurable minPhiV{"minPhiV", 0.f, "min phiv for pi0 -> ee or gamma -> ee"}; + Configurable maxPhiV{"maxPhiV", M_PI / 2, "max phiv for pi0 -> ee or gamma -> ee"}; // configuration for PID ML Configurable usePIDML{"usePIDML", false, "Flag to use PID ML"}; @@ -622,7 +623,7 @@ struct skimmerPrimaryElectronQC { if (fillQAHistogram) { fRegistry.fill(HIST("Pair/hMvsPhiV"), phiv, mee); } - if (mee < maxMee && phiv < maxPhiV) { + if ((minMee < mee && mee < maxMee) && (minPhiV < phiv && phiv < maxPhiV)) { return true; } else { return false;