-
Notifications
You must be signed in to change notification settings - Fork 4
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
Filtering on simulation status is not yet working as intended. #30
Comments
This seems easy to implement. However, there are cases when the bit is completely different from the specification (like 0 or some other number). In that case, what should be displayed?
Sorry, I don't quite understand what you mean by "not the actual value"? I mean, the condition checks if |
To clarify what I mean by not the value, the check that is currently there is effectively return particle.simStatus === filterSimStatus; Where return (particle.simStatus & (1 << filterSimStatus)) !== 0; This way the filter would check whether a certain bit is set in |
Ohh so it's not a direct comparison. Instead, some math to check the status. I've implemented these changes in this commit. The new check works as intended, by making the bit operations, and shows the simulation status name (overlay, stopped, etc) if the |
I just noticed that I confused |
In order to not blow up #27 too much, I have pulled this into a separate issue that can then also be fixed by a separate PR.
The sim status filtering is not currently working as intended. If I look here (which I hope is the right place):
https://github.com/key4hep/dmx/blob/23a1eb2cc4ed4fb3200a4d38ee70e464a180a21f/js/menu/filter/parameters.js#L114-L118
This checks whether the sim status is exactly the value of the check boxes that appear on the page:
However, these are the bits in the sim status that are set if a condition is met:
https://github.com/key4hep/EDM4hep/blob/0784e02caf09ee89a728b4dd17ed74ef082e4d66/edm4hep.yaml#L297-L304
So there are two things that would need to be improved / fixed
23
->Overlay
The text was updated successfully, but these errors were encountered: