Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalorimetrySyst aborts in case of missing template files #116

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

PetrilloAtWork
Copy link
Member

@PetrilloAtWork PetrilloAtWork commented Jan 22, 2025

It has been reported an issue with cryptic crashes that were tracked down to ana::CalorimetrySyst not finding a template data file that it needs.
The code to load the template has the template name hard-coded and no check on the success on locating the file.
This change will abort() (after cafe standards) when the file can't be located.

It does not solve that issue (which will be solved by appropriately modifying the dependencies), but it returns a useful message in case of error.

The misleading error message:

Processing [...]/sbnana/v09_93_01/slf7.x86_64.e26.prof/bin/load_cafana_libs.C...
Loading libraries..........Error in <TFile::Open>: no url specified

@PetrilloAtWork PetrilloAtWork added the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Open pull requests
Development

Successfully merging this pull request may close these issues.

1 participant