Closed calcuttj closed 5 months ago
@calcuttj, the art Source<T>
template does not automatically support the skipEvents
behavior. However, art makes sure that you have access to the skipEvents
configuration parameter in the fhicl::ParameterSet
in the H4BeamInputDetail
constructor. With that, you can implement the skip-event functionality directly in readFile
or readNext
(wherever is appropriate).
Does that make sense?
Yes it does, thanks Kyle I think I have it working
I'll do some testing to make sure and will close/resolve this when ready
Hello, I'm attempting write a new input source that operates on a custom NTuple/ROOT Tree (not artroot) file. I'd like to be able to use the
--nskip
CLI flag and/orskipEvents
fhicl parameter when using this. However I can't seem to find much documentation on how to actually do this. I would greatly appreciate guidance on thisPlease see this feature branch in the DUNE software on my attempts to do this. I have the input source working up to, but not including the skip events portion and have an analyzer module to demonstrate
Specifically I try to implement skipEvents here thinking it would automagically work but that doesn't seem to be the case. See below, where I try to use
--nskip 2
and thus art event should start at 2 (my thinking was that I'd increment the event n times in that steering class before iterating through the events)