Skip to content

[WIP] Add a podio-filter-frames tool #939

Open
tmadlener wants to merge 2 commits intoAIDASoft:masterfrom
tmadlener:podio-filter-events
Open

[WIP] Add a podio-filter-frames tool #939
tmadlener wants to merge 2 commits intoAIDASoft:masterfrom
tmadlener:podio-filter-events

Conversation

@tmadlener
Copy link
Collaborator

@tmadlener tmadlener commented Feb 24, 2026

BEGINRELEASENOTES

  • Add a podio-filter-frames tool that allows to filter whole Frames from files via a user defined keepFrame function that is JIT compiled on the fly.

ENDRELEASENOTES

This might simplify things a bit in some cases, e.g. when you want to select files that only contain a certain set of decays and takes off the boiler plate of setting up a reader / writer and an event loop.

  • Documentation
  • Tests

std::exit(1);
}

if (const auto filterFunc = gInterpreter->FindSym("_Z9keepFrameRKN5podio5FrameE")) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I suppose this mangled name will work for gcc & clang. The alternative would be to have an extern "C" block wrapping the function to disable name-mangling. The drawback to that is that users will have to do that (or we will have to partially parse the file to figure out where to inject it).

@tmadlener tmadlener changed the title Add a podio-filter-frames tool [WIP] Add a podio-filter-frames tool Feb 24, 2026
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.

1 participant