Closed stognini closed 1 month ago
Currently RootPrimaryGenerator
is in phys/
, but maybe should be moved to io/
which is where RootEventWriter/Reader
are?
The word clumped has an unpleasant feel to it
Totally agree. Somehow it felt like 'merged' was a bit off, and 'concatenated' was long... But I guess merged is fine.
This PR is a follow up on issue #1207 and adds the capability to sample primaries from an existing ROOT file with offloaded primaries generated by RootEventWriter
Main additions:
RootEventSampler
class, derived fromEventReaderInterface
event_file
, afile_sampling_options
struct can be used:If either of those numbers is
0
, theRootEventReader
is constructed and reads it on an event-by-event basis. If both numbers are positive, theRootEventSampler
is constructed and will sample primaries as requested.