Fill trigger histograms from many files in a directory - #2464
Draft
GernotMaier wants to merge 7 commits into
Draft
Fill trigger histograms from many files in a directory#2464GernotMaier wants to merge 7 commits into
GernotMaier wants to merge 7 commits into
Conversation
|
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.




Extend simtools-write-trigger-histograms with a directory mode that discovers reduced-event HDF5 files, groups *.part.reduced_event_data.hdf5 files by their shared
filename stem, and produces one trigger-histogram HDF5 file per group. Scheduler backends submit one independent job per group and return immediately.
Implementation changes
Add --event_data_directory as a new input mode, mutually exclusive with the existing --event_data_files mode.
In directory mode, write each group to --output_path/.trigger_histograms.hdf5; do not require or use --output_file.
Preserve existing --event_data_files behavior: explicit patterns remain separate production references in one requested output file.
Refactor the per-production work so one group can fully write its own product. Use the job-execution submission API rather than the blocking map path in directory mode.
Update the application and production-prerequisites documentation with a directory-mode example and scheduler example.
Public interface
Assumptions