Skip to content

the SvtxAlignmentState initializers do not work for debug builds - #4454

Open
pinkenburg wants to merge 1 commit into
sPHENIX-Collaboration:masterfrom
pinkenburg:fix-debug-build
Open

pinkenburg wants to merge 1 commit into
sPHENIX-Collaboration:masterfrom
pinkenburg:fix-debug-build

Conversation

@pinkenburg

@pinkenburg pinkenburg commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Types of changes

  • [ X] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work for users)
  • Requiring change in macros repository (Please provide links to the macros pull request in the last section)
  • I am a member of GitHub organization of sPHENIX Collaboration, EIC, or ECCE (contact Chris Pinkenburg to join)

What kind of change does this PR introduce? (Bug fix, feature, ...)

The debug build choked on the SvtxAlignmentState initializer. This should fix this while still working with optimized code. This PR is courtesy of codex

TODOs (if applicable)

Links to other PRs in macros and calibration repositories (if applicable)

Motivation

Debug builds fail when SvtxAlignmentState uses its static integer constants. This change provides the definitions needed for those uses.

Key changes

  • Added out-of-class definitions for NGL, NLOC, and NRES in SvtxAlignmentState.cc.
  • Existing accessors remain unchanged.

Potential risk areas

  • No IO format, reconstruction behavior, thread-safety, or performance changes are indicated.
  • Test results are not available in the supplied information.

Possible future improvements

  • Confirm the fix in both debug and optimized builds.

AI-generated summaries can contain errors. This summary is based on the supplied change description; verify it against the source and build results.

@coderabbitai

coderabbitai Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: sPHENIX-Collaboration/coresoftware/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 3f768d64-4147-463b-a621-10b89d41d382

📥 Commits

Reviewing files that changed from the base of the PR and between 2a2e56e and be9c383.

📒 Files selected for processing (1)
  • offline/packages/trackbase_historic/SvtxAlignmentState.cc

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

SvtxAlignmentState.cc now defines the static integer constants NGL, NLOC, and NRES outside the class. Existing accessors are unchanged.

Changes

Alignment state constants

Layer / File(s) Summary
Define static integer constants
offline/packages/trackbase_historic/SvtxAlignmentState.cc
Adds out-of-class definitions for NGL, NLOC, and NRES.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to be9c3

The definitions address uses of these constants that require storage without changing accessor behavior. No actionable merge risk is evident in the reviewed change.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sphenix-jenkins-ci

Copy link
Copy Markdown

Build & test report

Report for commit be9c383b957c63d55d536da7a4da7fbc20a9776a:
Jenkins on fire


Automatically generated by sPHENIX Jenkins continuous integration
sPHENIX             jenkins.io

@sphenix-jenkins-ci

Copy link
Copy Markdown

Build & test report

Report for commit be9c383b957c63d55d536da7a4da7fbc20a9776a:
Jenkins on fire


Automatically generated by sPHENIX Jenkins continuous integration
sPHENIX             jenkins.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant