Skip to content

[PWGJE] EMCal correction task: apply MC cell corrections after cross-… - #18727

Merged
mhemmer-cern merged 1 commit into
AliceO2Group:masterfrom
mhemmer-cern:emcal-fix-shaper-mc
Nov 13, 2026
Merged

mhemmer-cern merged 1 commit into
AliceO2Group:masterfrom
mhemmer-cern:emcal-fix-shaper-mc

Conversation

@mhemmer-cern

Copy link
Copy Markdown
Collaborator

…talk

In processMCFull and processMCWithSecondaries the shaper correction was applied to low-gain cells twice: once while converting the cells, and again after the cross-talk emulation. The second pass did not check hasShaperCorrection, so it also ran when the correction was disabled.

All MC cell corrections now happen in one loop after the cross-talk emulation, in this order:

  • shaper correction for LG cells (only if hasShaperCorrection is set)
  • mcCellEnergyShift
  • mcCellEnergyResolutionBroadening
  • cell time shift and smearing (getCellTimeShift), evaluated with the corrected cell energy

As a result:

  • the cross-talk emulation works on the uncorrected cell amplitudes and times
  • cells added by the cross-talk emulation now also get the energy shift, resolution broadening and time shift/smearing
  • hCellEnergyDistAfter is filled after the corrections, and its title says so

…talk

In processMCFull and processMCWithSecondaries the shaper correction was
applied to low-gain cells twice: once while converting the cells, and
again after the cross-talk emulation. The second pass did not check
hasShaperCorrection, so it also ran when the correction was disabled.

All MC cell corrections now happen in one loop after the cross-talk
emulation, in this order:
- shaper correction for LG cells (only if hasShaperCorrection is set)
- mcCellEnergyShift
- mcCellEnergyResolutionBroadening
- cell time shift and smearing (getCellTimeShift), evaluated with the
  corrected cell energy

As a result:
- the cross-talk emulation works on the uncorrected cell amplitudes and
  times
- cells added by the cross-talk emulation now also get the energy shift,
  resolution broadening and time shift/smearing
- hCellEnergyDistAfter is filled after the corrections, and its title
  says so
@github-actions github-actions Bot added the pwgje label Nov 13, 2026
@github-actions

Copy link
Copy Markdown

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

@mhemmer-cern
mhemmer-cern marked this pull request as ready for review November 13, 2026 10:49
@alibuild

This comment was marked as outdated.

@jokonig

jokonig commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

The logic looks good to me! Thanks @mhemmer-cern

@mhemmer-cern
mhemmer-cern enabled auto-merge (squash) November 13, 2026 16:04

@alibuild alibuild left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Auto-approving on behalf of @mhemmer-cern.

@mhemmer-cern
mhemmer-cern merged commit f98de60 into AliceO2Group:master Nov 13, 2026
15 checks passed
@mhemmer-cern
mhemmer-cern deleted the emcal-fix-shaper-mc branch November 13, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants