Undo checks for existing calibs#4151
Merged
pinkenburg merged 2 commits intosPHENIX-Collaboration:masterfrom Feb 1, 2026
Merged
Undo checks for existing calibs#4151pinkenburg merged 2 commits intosPHENIX-Collaboration:masterfrom
pinkenburg merged 2 commits intosPHENIX-Collaboration:masterfrom
Conversation
Contributor
📝 WalkthroughWalkthroughRemoves runtime validation checks in MbdCalib.cc that previously returned error status when required calibration URLs (sampmax_url, ped_url) were absent. The code now continues execution instead of early-failing when these inputs are missing, deferring error handling to downstream operations. Changes
Possibly related PRs
✨ Finishing touches
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 |
Contributor
|
merging this now to run this in online production |
Build & test reportReport for commit 278cf7399958ccde29102c461c49a212b972a31b:
Automatically generated by sPHENIX Jenkins continuous integration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



comment: Undo change to abort if sampmax and ped calibs are missing.
Types of changes
What kind of change does this PR introduce? (Bug fix, feature, ...)
TODOs (if applicable)
Links to other PRs in macros and calibration repositories (if applicable)
PR Summary: Undo checks for existing calibrations
Motivation/Context
The MBD (Barrel Barrel Detector) calibration system was previously configured to abort execution if critical calibration files (sampmax and pedestal) were missing from the database or file system. This hard-fail behavior prevented the possibility of calculating these calibrations on the fly during reconstruction, limiting flexibility in data processing workflows.
Key Changes
Download_All(): Deleted validation logic that returned error status (-1) whenMBD_SAMPMAXorMBD_PEDURLs were empty stringsDownload_Ped(): Changed the behavior when pedestal calibration data is not found from returning error status to logging a warning and continuing execution (calibration values remain as NaN)Download_SampMax(): Changed the behavior when sampmax calibration data is not found from returning error status to logging a warning and continuing execution (calibration values remain as -1)Reconstruction Behavior Changes
This change enables the calibration system to gracefully handle missing calibrations instead of aborting:
Potential Risk Areas
Recommendations for Future Work
Note: AI analysis tools can make mistakes when analyzing diffs. Reviewers should verify the actual impact on calibration logic by examining the complete Download_Ped() and Download_SampMax() implementations and confirming that missing calibrations will not cause downstream crashes or silent physics errors.