do not abort for missing trms calib#4148
do not abort for missing trms calib#4148pinkenburg merged 1 commit intosPHENIX-Collaboration:masterfrom
Conversation
📝 WalkthroughWalkthroughModifies Changes
Possibly related PRs
✨ Finishing touches
Tip 🧪 Unit Test Generation v2 is now available!We have significantly improved our unit test generation capabilities. To enable: Add this to your reviews:
finishing_touches:
unit_tests:
enabled: trueTry it out by using the Have feedback? Share your thoughts on our Discord thread! 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. Comment |
|
There will still be a (not fatal) message that the trms calibration is missing (to remind us that something needs to be done here) |
802d4d2
into
sPHENIX-Collaboration:master
Build & test reportReport for commit 3ab3316d1593fc99b5e70a704614c0e95b743eaf:
Automatically generated by sPHENIX Jenkins continuous integration |



Types of changes
What kind of change does this PR introduce? (Bug fix, feature, ...)
The latest change made a missing calibration a fatal error. The MBD_TRMS calibration does not exist so the reconstruction aborts now. This is a quick fix which leaves everything in place except the abort if this calibration is not found. The reconstruction now goes through (means the other calibrations do exist, will merge this right after jenkins kicks off. clang-tidy will fail since some includes have changed which are not part of the new build yet.
TODOs (if applicable)
Links to other PRs in macros and calibration repositories (if applicable)
PR Summary
Motivation / Context
A recent change (commit f493c6e) made missing MBD calibrations fatal errors to prevent reconstruction with incomplete data. However, the MBD_TRMS (time resolution vs. amplitude) calibration does not yet exist in the database. This caused reconstruction to abort when the TRMS calibration was unavailable, even though the other required calibrations were present. This PR provides a temporary fix to allow reconstruction to proceed when TRMS is missing while more fundamental calibration infrastructure is developed.
Key Changes
_status = -1) and early return that previously caused reconstruction to abortPotential Risk Areas
Reconstruction behavior change: Reconstruction now proceeds when TRMS is missing, rather than aborting. This is intentional but assumes other calibrations are sufficient for physics quality.
Status inconsistency: Unlike other missing calibrations that set
_status = -1and cause failure, TRMS now returns 0 without explicitly setting status. This creates an inconsistency in error handling across different calibration types.Silent degradation: The function logs a WARNING but doesn't prevent potential downstream issues if TRMS-dependent analysis is performed without the calibration data. Downstream code should verify TRMS availability when needed.
Possible Future Improvements
Note: AI-generated summaries may contain errors. Please verify against actual code changes when reviewing.