Skip to content

Commit b7efad9

Browse files
jokonigjokonig
andauthored
[PWGEM] Add configurable for min. number of photons in EOI (#17698)
Co-authored-by: jokonig <jokonig@cern.ch>
1 parent 80a2a6d commit b7efad9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

PWGEM/Dilepton/TableProducer/filterEoI.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ struct filterEoI {
5252
Configurable<bool> inheritFromOtherTask{"inheritFromOtherTask", true, "Flag to iherit all common configurables from skimmerPrimaryElectron or skimmerPrimaryMuon"};
5353
Configurable<int> minNelectron{"minNelectron", -1, "min number of electron candidates per collision"};
5454
Configurable<int> minNmuon{"minNmuon", -1, "min number of muon candidates per collision"};
55+
Configurable<int> minNgamma{"minNgamma", 1, "min number of V0-photon candidates per collision"};
5556
Configurable<std::string> taskNameForNelectron{"taskNameForNelectron", "skimmer-primary-electron", "task name where minNelectron is defined."};
5657
Configurable<std::string> varNameForNelectron{"varNameForNelectron", "minNelectron", "variable name for minNelectron"};
5758

@@ -109,7 +110,8 @@ struct filterEoI {
109110
}
110111
if constexpr (static_cast<bool>(system & kPCM)) {
111112
auto v0s_coll = v0s.sliceBy(perCollision_v0, collision.globalIndex());
112-
if (v0s_coll.size() >= 1) {
113+
if (v0s_coll.size() >= minNgamma) {
114+
does_pcm_exist = true;
113115
fRegistry.fill(HIST("hEventCounter"), 4);
114116
}
115117
}

0 commit comments

Comments
 (0)