Skip to content

Commit

Permalink
[PWGEM/Dilepton] update norm in dilepton task (#9112)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsekihat authored Dec 23, 2024
1 parent 91a81f0 commit 1f81fec
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 51 deletions.
9 changes: 8 additions & 1 deletion PWGEM/Dilepton/Core/Dilepton.h
Original file line number Diff line number Diff line change
Expand Up @@ -1492,9 +1492,16 @@ struct Dilepton {
}
PROCESS_SWITCH(Dilepton, processTriggerAnalysis, "run dilepton analysis on triggered data", false);

void processNorm(aod::EMEventNormInfos const& collisions)
Filter collisionFilter_centrality_norm = cfgCentMin < o2::aod::cent::centFT0C && o2::aod::cent::centFT0C < cfgCentMax;
using FilteredNormInfos = soa::Filtered<aod::EMEventNormInfos>;

void processNorm(FilteredNormInfos const& collisions)
{
for (auto& collision : collisions) {
if (collision.centFT0C() < cfgCentMin || cfgCentMax < collision.centFT0C()) {
continue;
}

fRegistry.fill(HIST("Event/norm/hCollisionCounter"), 1.0);
if (collision.selection_bit(o2::aod::evsel::kIsTriggerTVX)) {
fRegistry.fill(HIST("Event/norm/hCollisionCounter"), 2.0);
Expand Down
Loading

0 comments on commit 1f81fec

Please sign in to comment.