diff --git a/PWGEM/Dilepton/TableProducer/filterEoI.cxx b/PWGEM/Dilepton/TableProducer/filterEoI.cxx index d7e44647dab..b8eb2c32175 100644 --- a/PWGEM/Dilepton/TableProducer/filterEoI.cxx +++ b/PWGEM/Dilepton/TableProducer/filterEoI.cxx @@ -50,6 +50,7 @@ struct filterEoI { Configurable inheritFromOtherTask{"inheritFromOtherTask", true, "Flag to iherit all common configurables from skimmerPrimaryElectron or skimmerPrimaryMuon"}; Configurable minNelectron{"minNelectron", -1, "min number of electron candidates per collision"}; Configurable minNmuon{"minNmuon", -1, "min number of muon candidates per collision"}; + Configurable minNphotons{"minNphotons", 1, "min number of photon candidates per collision"}; Configurable taskNameForNelectron{"taskNameForNelectron", "skimmer-primary-electron", "task name where minNelectron is defined."}; Configurable varNameForNelectron{"varNameForNelectron", "minNelectron", "variable name for minNelectron"}; @@ -63,6 +64,7 @@ struct filterEoI { LOGF(info, "minNelectron = %d", minNelectron.value); LOGF(info, "minNmuon = %d", minNmuon.value); + LOGF(info, "minNphotons = %d", minNphotons.value); auto hEventCounter = fRegistry.add("hEventCounter", "hEventCounter", kTH1D, {{8, 0.5f, 8.5f}}); hEventCounter->GetXaxis()->SetBinLabel(1, "all"); @@ -107,7 +109,7 @@ struct filterEoI { } if constexpr (static_cast(system & kPCM)) { auto v0s_coll = v0s.sliceBy(perCollision_v0, collision.globalIndex()); - if (v0s_coll.size() >= 1) { + if (v0s_coll.size() >= minNphotons) { does_pcm_exist = true; fRegistry.fill(HIST("hEventCounter"), 4); }