Skip to content

Fix crash if unable to calculate theta from the triplet#158

Merged
tmadlener merged 2 commits into
iLCSoft:masterfrom
dudarboh:master
Mar 27, 2026
Merged

Fix crash if unable to calculate theta from the triplet#158
tmadlener merged 2 commits into
iLCSoft:masterfrom
dudarboh:master

Conversation

@dudarboh

Copy link
Copy Markdown
Member

@tmadlener tmadlener left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that we are turning a hard error into something that is handled my main question is whether (and how) we should log whenever this happens.

Comment thread TrackDigi/TPCDigi/src/TPCDigiProcessor.cc Outdated
Comment thread TrackDigi/TPCDigi/src/TPCDigiProcessor.cc Outdated
@dudarboh

Copy link
Copy Markdown
Member Author

I have added the warning logging. I think the code should never really reach here after adding the check for dr23 / D < 1.0

@tmadlener tmadlener merged commit 4cb0654 into iLCSoft:master Mar 27, 2026
5 of 6 checks passed
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

Successfully merging this pull request may close these issues.

TPCDigiProcessor should not crash the entire reconstruction chain.

2 participants