-
Notifications
You must be signed in to change notification settings - Fork 30
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
Nan in _DRICH(Gas|Aerogel)IrtCherenkovParticleID_hypotheses.weight #1719
Comments
Hi @wdconinc I will look into it. But just to mention we will eventually get rid of this weight in future and include some chi^2 based PID in the coming months. |
Yes, but it would be nice if this could get fixed sooner and avoided in general at the irt stage by having some kind of more robust testing. |
I agree, however I checked several of my local reconstruction files. I have not seen there any nan values. I am checking with some DIS events. In principle, these weights are positive definite quantity. At least from mathematical pov.
|
No, that is ignoring the problem and hoping it goes away. |
Hi @wdconinc I am working on this issue. However, there are a couple of things which I don't really understand. |
@deepaksamuel maybe you can also help me in figuring this issue out. |
Some of these electrons can be secondaries coming from somewhere in the forward region, e.g. backsplash from forward electromagnetic calorimeter. |
I thought about it; but, I expect no detected hits from them. As my mirror will reflect Cherenkov photons only from those particles which has a positive z component of the momentum. Otherwise I don't see any reason that the photons reach the sensor. Evidence of scintillation maybe !?! |
In any case, even if there are some electrons that you don't expect, the code should be robust and not return nan. That indicates you are (or IRT is) probably taking sqrt on negative numbers or dividing by an unchecked zero. I don't imagine it's an overflow, but you could look into that as well; that was an issue in the original implementation of the seed finder for straight tracks. |
Great point. Will check this. |
Environment: (where does this bug occur, have you tried other environments)
main
for latest released): mainHEAD
for the most recent on git): HEADSteps to reproduce: (give a step by step account of how to trigger the bug)
With https://github.com/eic/EICrecon/actions/runs/12897784775/artifacts/2464891599 produced by https://github.com/eic/EICrecon/actions/runs/12897784775/job/35963715944
Expected Result: (what do you expect when you execute the steps above)
No nan.
Actual Result: (what do you get when you execute the steps above)
Nan.
The text was updated successfully, but these errors were encountered: