From 6323930bec1002119c3182a3e86073ee41d26f19 Mon Sep 17 00:00:00 2001 From: GiorgioAlbertoLucia Date: Fri, 12 Jun 2026 11:34:12 +0200 Subject: [PATCH] added configurable to skip non reconstructed collisions (default) --- PWGLF/TableProducer/QC/nucleiQC.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PWGLF/TableProducer/QC/nucleiQC.cxx b/PWGLF/TableProducer/QC/nucleiQC.cxx index bef7cb9f4f5..d158b95d2c3 100644 --- a/PWGLF/TableProducer/QC/nucleiQC.cxx +++ b/PWGLF/TableProducer/QC/nucleiQC.cxx @@ -99,6 +99,7 @@ struct nucleiQC { Configurable cfgFillTable{"cfgFillTable", true, "Fill output tree"}; Configurable cfgDoCheckPdgCode{"cfgDoCheckPdgCode", true, "Should you only select tracks associated to a mc particle with the correct PDG code?"}; + Configurable cfgSkipNonReconstructedCollisions{"cfgSkipNonReconstructedCollisions", true, "Should you skip collisions for which no particle is reconstructed?"}; Configurable cfgFillOnlyPhysicalPrimaries{"cfgFillOnlyPhysicalPrimaries", true, "Should you only select physical primary particles?"}; Configurable> cfgSpeciesToProcess{"cfgSpeciesToProcess", {nuclei::speciesToProcessDefault[0], nuclei::Species::kNspecies, 1, nuclei::names, {"processNucleus"}}, "Nuclei to process"}; Configurable> cfgEventSelections{"cfgEventSelections", {nuclei::EvSelDefault[0], 8, 1, nuclei::eventSelectionLabels, nuclei::eventSelectionTitle}, "Event selections"}; @@ -625,6 +626,9 @@ struct nucleiQC { if (!mFillSpecies[iSpecies]) continue; + if (cfgSkipNonReconstructedCollisions && reconstructedCollisions.count(particle.mcCollisionId()) == 0) + continue; + if (reconstructedMcParticles.count(mcIndex) > 0) continue;