Skip to content

Commit 408fb43

Browse files
[PWGLF] added configurable to skip non reconstructed collisions (default) (#16633)
1 parent 0cd038f commit 408fb43

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

PWGLF/TableProducer/QC/nucleiQC.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ struct nucleiQC {
9999

100100
Configurable<bool> cfgFillTable{"cfgFillTable", true, "Fill output tree"};
101101
Configurable<bool> cfgDoCheckPdgCode{"cfgDoCheckPdgCode", true, "Should you only select tracks associated to a mc particle with the correct PDG code?"};
102+
Configurable<bool> cfgSkipNonReconstructedCollisions{"cfgSkipNonReconstructedCollisions", true, "Should you skip collisions for which no particle is reconstructed?"};
102103
Configurable<bool> cfgFillOnlyPhysicalPrimaries{"cfgFillOnlyPhysicalPrimaries", true, "Should you only select physical primary particles?"};
103104
Configurable<LabeledArray<int>> cfgSpeciesToProcess{"cfgSpeciesToProcess", {nuclei::speciesToProcessDefault[0], nuclei::Species::kNspecies, 1, nuclei::names, {"processNucleus"}}, "Nuclei to process"};
104105
Configurable<LabeledArray<int>> cfgEventSelections{"cfgEventSelections", {nuclei::EvSelDefault[0], 8, 1, nuclei::eventSelectionLabels, nuclei::eventSelectionTitle}, "Event selections"};
@@ -625,6 +626,9 @@ struct nucleiQC {
625626
if (!mFillSpecies[iSpecies])
626627
continue;
627628

629+
if (cfgSkipNonReconstructedCollisions && reconstructedCollisions.count(particle.mcCollisionId()) == 0)
630+
continue;
631+
628632
if (reconstructedMcParticles.count(mcIndex) > 0)
629633
continue;
630634

0 commit comments

Comments
 (0)