Skip to content
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

Segmentation fault when only some of the events have subset collections #215

Open
tmadlener opened this issue Jan 8, 2025 · 0 comments
Open

Comments

@tmadlener
Copy link
Contributor

tmadlener commented Jan 8, 2025

This was originally reported by @dudarboh and it took us some debugging to understand what is going on. Technically it also not a bug in k4MarlinWrapper, but this is where it manifests as a bug. The actual issue is in LCIO, resp. a missing feature in LCIO (see iLCSoft/LCIO#199).

The issue

The PatchCollections processor can be used to patch collections into the LCEvent on the fly. It effectively creates an empty collection (of a given type) if that collection is not already present in the event. This is useful because EDM4hep output (more specifically the ROOT backend of podio) expects all events to have the same "collection content". An issue arises if the collection is a subset collection if it's present in the event. In that case events that have the collection (without patching) will try to store a subset collection, while events that have the collection via patching will try to store it as a normal collection. This leads to a segmentation fault because the branch structure that podio creates for the two cases is different and we try to write data into an unsuitable branch.

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

No branches or pull requests

1 participant