Skip to content

Use std::abs for floating-point values in TRD and ITS studies - #15874

Merged
sawenzel merged 1 commit into
AliceO2Group:devfrom
sawenzel:fix-abs-float-trd-its
Sep 30, 2026
Merged

sawenzel merged 1 commit into
AliceO2Group:devfrom
sawenzel:fix-abs-float-trd-its

Conversation

@sawenzel

Copy link
Copy Markdown
Collaborator

This fixes unqualified abs() calls on floats that resolve to the integer abs and truncate.

  • 11 calls in TRD TrackBasedCalib and ITS studies (Efficiency, AvgClusSize) called int abs(int) on a float.
  • They now call std::abs.

Note that this changes the selections in the TRD track-based calibration and in the ITS postprocessing studies: the snp rejection, the barrel-gap exclusion, the DCA windows and the V0 mass windows now cut as written instead of on the truncated integer value.

Assisted by Claude Code.

This fixes unqualified abs() calls on floats that resolve to the integer abs and truncate.

- 11 calls in TRD TrackBasedCalib and ITS studies (Efficiency, AvgClusSize) called int abs(int) on a float.
- They now call std::abs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for 649102d at 2026-09-30 19:40:

No log files found

Full log here.

@sawenzel
sawenzel merged commit 54c13e3 into AliceO2Group:dev Sep 30, 2026
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants