-
Notifications
You must be signed in to change notification settings - Fork 157
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
fix: Update EventRecording to remove disconnected vertices and particles #912
Conversation
Prevent problems similar to #877
Codecov Report
@@ Coverage Diff @@
## main #912 +/- ##
=======================================
Coverage 48.48% 48.48%
=======================================
Files 334 334
Lines 17091 17091
Branches 8081 8081
=======================================
Hits 8287 8287
Misses 3099 3099
Partials 5705 5705 Continue to review full report at Codecov.
|
This does not seem to compile |
@andriish can I close this then? |
I suspect there might be the same problem as in #877. A simple VertexA ---ParticleA-->VerxexB So after one |
Hi @andriish could you give a bit more explanation what you want to fix here and get the CI to go green? Thanks! |
Hi @robertlangenberg ,
exactly the behaviour of #877. Best regards, Andrii |
Hi @paulgessinger , @robertlangenberg , any progress with this MR? Best regards, Andrii |
Hi @paulgessinger ,
But it is not enough to remove only the vertices w/o outgoing particles to ensure the event has a tree-like structure.
The "proposed logic" cleans up more "broken" cases in the event structure (e.g. similar to #877) than the current version and assures creation of an event with a tree-like structure that can be then correctly read back. Of course, not all events will contain particles w/o prod. vertex or vertices w/o outgoing particles. And for some events the current version of code will work fine, but it is better to be on the safe sie, as for me. Best regards, Andrii P.S. An example of "bad" event structure that would not be cured by the current logic is ParticleA has some prod_vertex VertexX and end_vertex VertexY The current version of code would just remove the VertexY, but completely disconnected particleB would remain in the event. |
I started cleaning out the Geant4 examples a bit more, we have several files that are now called the same, e.g. What I suggest (PR in work) is:
|
@asalzburger they're called the same but I moved them into separate namespaces in a PR that was merged a few weeks ago. |
I updated the format of the |
Thanks, @paulgessinger! If there will be any issues related to HepMC, ping me. Best regards, Andrii |
Prevent problems similar to #877