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

Crash when tree not found #398

Open
amagnan opened this issue Sep 4, 2024 · 1 comment
Open

Crash when tree not found #398

amagnan opened this issue Sep 4, 2024 · 1 comment

Comments

@amagnan
Copy link

amagnan commented Sep 4, 2024

Hello,
I had a crash in this line because I have files that somehow don't have trees inside, and this seems not protected at the moment:

nevents = tt.GetEntries()

I protected it and then it crashed properly later on from the run_fccanalysis.py . I guess it should crash properly here first then...

Also, I have a large signal production with some input parameters from a text file, and some time one of the production fails for different reasons, but I don't really care to use a few points here and there. So, it would be nice that the program does not exit entirely, but simply goes to the next file when one of the input file is not found or the tree does not exist. Or, even better, that there is a flag to decide whether the user wants to exit on this type of errors or not ?

@kjvbrt
Copy link
Contributor

kjvbrt commented Sep 16, 2024

Thanks you @amagnan for the reporting.

This PR should fix the issue: #402

For now it hard stops the execution of the script, let me know if that would not work for you :)

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

No branches or pull requests

3 participants
@amagnan @kjvbrt and others