Skip to content

[PWGCF] Add QA histograms - #17923

Merged
isputows merged 1 commit into
AliceO2Group:masterfrom
fsii:dev
Sep 16, 2026
Merged

isputows merged 1 commit into
AliceO2Group:masterfrom
fsii:dev

Conversation

@fsii

@fsii fsii commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings September 15, 2026 14:32
@github-actions github-actions Bot added the pwgcf label Sep 15, 2026
@github-actions

Copy link
Copy Markdown

O2 linter results: ❌ 0 errors, ⚠️ 0 warnings, 🔕 0 disabled

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Compatibility-breaking renames, changed MC defaults, and incomplete QA coverage must be addressed.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds MC QA histograms to partNumFluc and refactors particle encoding and event configuration.

Changes:

  • Adds collision-count and track-matching QA histograms.
  • Converts particle encoding to compile-time species parameters.
  • Renames configuration/output keys and changes MC selection defaults.
File summaries
File Summary
PWGCF/EbyEFluctuations/Tasks/partNumFluc.cxx Adds MC QA and related refactoring. Moderate issues remain involving changed defaults, renamed public configuration and output keys, and QA coverage restricted by existing selections.
Review details

Suppressed comments (4)

PWGCF/EbyEFluctuations/Tasks/partNumFluc.cxx:956

  • The event-selection Configurable keys are also renamed (cfgBitsSelectionEvent, cfgFlagInelEvent, and cfgFlagInelEventMc). Existing workflow options using the old keys will no longer configure this task, so retain the old key strings or add a compatibility migration rather than changing the public interface in this QA addition.
    Configurable<std::uint64_t> cfgBitsSelection{"cfgBitsSelection", std::uint64_t{0b00000000000001000000000000000000000000000000000000}, "Event selection bits"};
    Configurable<bool> cfgFlagInel{"cfgFlagInel", true, "Flag of requiring INEL > 0"};
    Configurable<bool> cfgFlagInelMc{"cfgFlagInelMc", true, "Flag of requiring MC INEL > 0"};

PWGCF/EbyEFluctuations/Tasks/partNumFluc.cxx:1218

  • Changing this existing output object from hNMcEvents to hNEventsMc breaks downstream QA scripts and macros that consume the counter, even though the counter's behavior is otherwise unchanged. Keep the old histogram key or provide a compatibility alias before renaming it.
      hrCounter.add("hNEventsMc", ";;No. of MC Events", {HistType::kTH1D, {{NEs<McEventSelection>, -0.5, static_cast<double>(NEs<McEventSelection>) - 0.5, "Selection"}}});

PWGCF/EbyEFluctuations/Tasks/partNumFluc.cxx:956

  • This changes the default of cfgFlagInelMc from false to true, so existing MC jobs that do not set the option now reject collisions with !mcCollision.isInelGt0() and produce different yields, efficiencies, and QA distributions. Please keep the previous default or explicitly treat this as a separate, documented analysis-selection change.
    Configurable<bool> cfgFlagInelMc{"cfgFlagInelMc", true, "Flag of requiring MC INEL > 0"};

PWGCF/EbyEFluctuations/Tasks/partNumFluc.cxx:2583

  • This QA fill is reached only through processMc, whose mcCollision argument is soa::Filtered<aod::JoinedMcCollisions> with numRecoCollision > 0 (line 1002), and only after the INEL and MC-vertex rejection returns above. Thus the histogram omits zero-reconstruction collisions and all MC collisions failing those selections, so it cannot represent the requested collisions-per-MC-collision distribution. Fill it from the unfiltered MC-collision stream before these QA-independent cuts, or add a separate QA path.
      hrQaMc.fill(C_CS("hNCollisionsPerMcCollision"), mcCollision.numRecoCollision());
  • Files reviewed: 1/1 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread PWGCF/EbyEFluctuations/Tasks/partNumFluc.cxx
Comment thread PWGCF/EbyEFluctuations/Tasks/partNumFluc.cxx
@isputows
isputows merged commit 8e36596 into AliceO2Group:master Sep 16, 2026
16 checks passed
@fsii
fsii deleted the dev branch September 16, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants