Skip to content

Commit 1f81fec

Browse files
authored
[PWGEM/Dilepton] update norm in dilepton task (#9112)
1 parent 91a81f0 commit 1f81fec

File tree

2 files changed

+61
-51
lines changed

2 files changed

+61
-51
lines changed

PWGEM/Dilepton/Core/Dilepton.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,9 +1492,16 @@ struct Dilepton {
14921492
}
14931493
PROCESS_SWITCH(Dilepton, processTriggerAnalysis, "run dilepton analysis on triggered data", false);
14941494

1495-
void processNorm(aod::EMEventNormInfos const& collisions)
1495+
Filter collisionFilter_centrality_norm = cfgCentMin < o2::aod::cent::centFT0C && o2::aod::cent::centFT0C < cfgCentMax;
1496+
using FilteredNormInfos = soa::Filtered<aod::EMEventNormInfos>;
1497+
1498+
void processNorm(FilteredNormInfos const& collisions)
14961499
{
14971500
for (auto& collision : collisions) {
1501+
if (collision.centFT0C() < cfgCentMin || cfgCentMax < collision.centFT0C()) {
1502+
continue;
1503+
}
1504+
14981505
fRegistry.fill(HIST("Event/norm/hCollisionCounter"), 1.0);
14991506
if (collision.selection_bit(o2::aod::evsel::kIsTriggerTVX)) {
15001507
fRegistry.fill(HIST("Event/norm/hCollisionCounter"), 2.0);

0 commit comments

Comments
 (0)