Skip to content

Commit eb2cd29

Browse files
committed
add configurable for min. V0 candidate storage per event
1 parent b423639 commit eb2cd29

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
@@ -50,6 +50,7 @@ struct filterEoI {
5050
Configurable<bool> inheritFromOtherTask{"inheritFromOtherTask", true, "Flag to iherit all common configurables from skimmerPrimaryElectron or skimmerPrimaryMuon"};
5151
Configurable<int> minNelectron{"minNelectron", -1, "min number of electron candidates per collision"};
5252
Configurable<int> minNmuon{"minNmuon", -1, "min number of muon candidates per collision"};
53+
Configurable<int> minNphotons{"minNphotons", 1, "min number of photon candidates per collision"};
5354
Configurable<std::string> taskNameForNelectron{"taskNameForNelectron", "skimmer-primary-electron", "task name where minNelectron is defined."};
5455
Configurable<std::string> varNameForNelectron{"varNameForNelectron", "minNelectron", "variable name for minNelectron"};
5556

@@ -63,6 +64,7 @@ struct filterEoI {
6364

6465
LOGF(info, "minNelectron = %d", minNelectron.value);
6566
LOGF(info, "minNmuon = %d", minNmuon.value);
67+
LOGF(info, "minNphotons = %d", minNphotons.value);
6668

6769
auto hEventCounter = fRegistry.add<TH1>("hEventCounter", "hEventCounter", kTH1D, {{8, 0.5f, 8.5f}});
6870
hEventCounter->GetXaxis()->SetBinLabel(1, "all");
@@ -107,7 +109,7 @@ struct filterEoI {
107109
}
108110
if constexpr (static_cast<bool>(system & kPCM)) {
109111
auto v0s_coll = v0s.sliceBy(perCollision_v0, collision.globalIndex());
110-
if (v0s_coll.size() >= 1) {
112+
if (v0s_coll.size() >= minNphotons) {
111113
does_pcm_exist = true;
112114
fRegistry.fill(HIST("hEventCounter"), 4);
113115
}

0 commit comments

Comments
 (0)