Skip to content

Conversation

@ferdymercury
Copy link
Collaborator

@ferdymercury ferdymercury commented Nov 22, 2025

This Pull request:

Changes or fixes:

Since it's implemented for the 1D version, and for the 2D/3D versions you can call it via raw pointers but not directly via TH2 or TH3.

Functions were marked before as to-do, so no one could be calling them directly since they were already doing nothing and raising error. Hence, function signature and name were adapted to match the 2D and 3D needed parameters. Since these are legacy classes, the code from the implemented 1D version was copy-pasted and adapted, but no code modernization was performed, such as avoiding new/delete etc or clang-formatting.

Fixes https://root-forum.cern.ch/t/tspectrum2-bac-error-function-not-yet-implemented/64427
I've been hit myself with this, too.

Checklist:

  • tested changes locally
  • updated the docs (if necessary)

…2 or TH3

Since it's implemented for the 1D version, and for the 2D versions you can call it via raw pointers but not directly via TH2 or TH3.

Functions were marked before as to-do, so no one could be calling them directly since they were already doing nothing and raising error.
Hence, function signature and name were adapted to match the 2D and 3D needed parameters.
Since these are legacy classes, the code from the implemented 1D version was copy-pasted and adapted, but no code modernization was performed, such as avoiding new/delete etc.

Fixes https://root-forum.cern.ch/t/tspectrum2-bac-error-function-not-yet-implemented/64427
I've been hit myself with this, too.
@ferdymercury ferdymercury marked this pull request as ready for review November 22, 2025 14:52
@github-actions
Copy link

Test Results

    21 files      21 suites   3d 12h 25m 27s ⏱️
 3 781 tests  3 781 ✅ 0 💤 0 ❌
77 499 runs  77 499 ✅ 0 💤 0 ❌

Results for commit 080daba.

@dpiparo
Copy link
Member

dpiparo commented Nov 25, 2025

Thanks for contributing to reduce the Small Bug Density

@dpiparo dpiparo merged commit 6859d10 into root-project:master Nov 25, 2025
28 of 30 checks passed
@ferdymercury ferdymercury deleted the tspec2back branch November 25, 2025 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants