-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
TauWPThreshold.h uses exception throws as flow control #43492
Comments
A new Issue was created by @wddgit W. David Dagenhart. @makortel, @rappoccio, @sextonkennedy, @smuzaffar, @antoniovilela, @Dr15Jones can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
assign RecoTauTag/RecoTau |
New categories assigned: reconstruction @jfernan2,@mandrenguyen you have been requested to review this Pull request/Issue and eventually sign? Thanks |
@cms-sw/tau-pog-l2 |
E.g. |
This issue is fully signed and ready to be closed. |
When debugging a problem in the addOn PR tests, I was trying use
catch throw
. I hit a throw from this line of code 17 times in a row and gave up trying to simply continue past it. I had to set an explicit breakpoint after this constructor to get past this troublesome line of code.https://cmssdt.cern.ch/dxr/CMSSW/source/RecoTauTag/RecoTau/interface/TauWPThreshold.h?from=TauWPThreshold&case=true#17
I didn't spend a lot of time studying this, but at first glance it does not look like a truly exceptional circumstance (possibly I am incorrect and there is some kind of bug here).
It would make debugging exceptions with
catch throw
much easier if we didn't have this behavior going on. I would suggestion replacing this with some other control structure that does not use try-catch.The text was updated successfully, but these errors were encountered: