MarlinTPC
1.2.0
|
Select a number n to use only every nth event by throwing a SkipEventException for all other ones. More...
#include <SelectNthEventsProcessor.h>
Public Member Functions | |
virtual Processor * | newProcessor () |
virtual void | init () |
Called at the begin of the job before anything is read. More... | |
virtual void | processRunHeader (LCRunHeader *run) |
Called for every run. | |
virtual void | processEvent (LCEvent *evt) |
Called for every event - the working horse. | |
virtual void | check (LCEvent *evt) |
virtual void | end () |
Called after data processing for clean up. | |
Protected Attributes | |
int | _nRun |
int | _nEvt |
int | _nEvtProc |
int | _nEvtSkip |
int | _nEventToSelect |
int | _selectionOffset |
bool | _invertSelection |
Select a number n to use only every nth event by throwing a SkipEventException for all other ones.
All further processors in the chain will not process the skipped events. This selection can be inverted.
nEventToSelect | Integer number. Every nth event is processed by the chain, all other events are skipped. |
InvertSelection | Inverts the selection. If true, every nth event is skipped, all other events are processed. |
|
virtual |
Called at the begin of the job before anything is read.
Use to initialize the processor, e.g. book histograms.