Closed calcuttj closed 2 years ago
Thank you for the detailed instructions, @calcuttj. We have reproduced the error and implemented a fix with commit https://github.com/art-framework-suite/art/commit/488685f86c44c6aa440b2cd2c944b1e0b99c81d3. Incidentally, the Source
template was always designed to support the maxEvents
parameter (or -n
program option), but the ability was unintentionally removed at some point.
We anticipate including this fix in art 3.10, which should be available in the next couple weeks.
Great thanks for the quick help!
Describe the bug In dunetpc, we've written a custom input source that decodes headers in an HDF5 file. This source creates an art Event for each header in the file and stores information regarding the file name and how to access the data within the file. Downstream modules use this to access and decode data from within the HDF5 file. We'd like to use the -n flag to only process that many events using the downstream modules, however this does not appear to work.
Below is output from lar, using the source + downstream module to process the files. Shown in bold is output showing multiple events are being processed by downstream modules.
To Reproduce To reproduce this:
Please let me know any other information I can give regarding this issue
Thanks -Jake