[DRAFT POC] Add Arrow IPC stream reader for EDM4hep input - #2857
Draft
wdconinc wants to merge 5 commits into
Draft
[DRAFT POC] Add Arrow IPC stream reader for EDM4hep input#2857wdconinc wants to merge 5 commits into
wdconinc wants to merge 5 commits into
Conversation
This proof-of-concept implements an Apache Arrow IPC stream reader that enables real-time streaming from simulation (npsim/ddsim) to reconstruction (eicrecon) using named pipes or files. Implementation: - Add Apache Arrow dependency to build system - Implement JEventSourcePODIOArrowStream event source - Register Arrow stream reader with JANA2 framework - Add proof-of-concept CI test - Add comprehensive documentation The implementation provides the integration framework but requires: 1. DD4hep PR #1658 (Arrow writer) to be merged 2. podio >= 1.8 with Arrow backend support Once these dependencies are available, the Arrow-to-Frame conversion can be enabled to support full end-to-end streaming. Related: AIDASoft/DD4hep#1658 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
for more information, see https://pre-commit.ci
…#2859) This PR applies the include-what-you-use fixes as suggested by https://github.com/eic/EICrecon/actions/runs/31519048080. Please merge this PR into the branch `wdconinc-arrow-stream-reader-edm4hep` to resolve failures in PR #2857. Auto-generated by [create-pull-request][1] [1]: https://github.com/peter-evans/create-pull-request Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Contributor
Capybara summary for PR 2857
Last updated 2026-08-11T21:22-04:00 cf925f8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Briefly, what does this PR introduce? Please link to any relevant presentations or discussions.
This proof-of-concept implements an Apache Arrow IPC stream reader for EDM4hep input in EICrecon. This enables real-time streaming from simulation (npsim/ddsim) to reconstruction (eicrecon) using named pipes or files, without intermediate file I/O.
Related Work:
Architecture:
The implementation adds a new JANA2 event source (JEventSourcePODIOArrowStream) that:
podio::convertTableToFrame()(pending podio upgrade)Current Status:
Pending Dependencies:
CalorimeterClusterRecoCoGandImagingClusterReco#1658 (Arrow writer) - Currently under reviewENABLE_ARROWin eic-shellWhat is the urgency of this PR?
Low urgency - This is a proof-of-concept that establishes the integration framework. Full functionality depends on upstream dependencies.
What kind of change does this PR introduce?
New feature: Arrow IPC stream reader for real-time simulation-to-reconstruction streaming
Please check if any of the following apply
AI Usage: GitHub Copilot assisted with:
Implementation Details
Files Added/Modified
New Files:
src/services/io/podio/JEventSourcePODIOArrowStream.h- Event source headersrc/services/io/podio/JEventSourcePODIOArrowStream.cc- Event source implementationsrc/tests/arrow_stream_test/- CI test for verificationdocs/arrow_stream_reader.md- Comprehensive documentationModified Files:
CMakeLists.txt- Add Apache Arrow dependency (>= 10.0.0)src/services/io/podio/CMakeLists.txt- Link arrow_shared librarysrc/services/io/podio/podio.cc- Register Arrow event sourcesrc/tests/CMakeLists.txt- Add Arrow stream testUsage Examples (Future)
Once dependencies are available:
File-based input:
Named pipe streaming:
mkfifo simulation.arrow npsim --outputFile simulation.arrow --outputType Geant4Output2EDM4hepArrowStream & eicrecon simulation.arrow -Ppodio:output_file=reconstructed.rootKnown Limitations
Current POC:
Next Steps:
CalorimeterClusterRecoCoGandImagingClusterReco#1658 to mergeCI/Testing
A proof-of-concept test is included that verifies:
Full end-to-end testing will be enabled once dependencies are available.
Why This Matters
Real-time streaming eliminates the need for intermediate file I/O, enabling:
This infrastructure will be valuable for high-throughput workflows at the EIC.