MarlinTPC  1.2.0
Public Member Functions | Protected Attributes | List of all members
SelectNthEventsProcessor Class Reference

Select a number n to use only every nth event by throwing a SkipEventException for all other ones. More...

#include <SelectNthEventsProcessor.h>

Inheritance diagram for SelectNthEventsProcessor:

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
 

Detailed Description

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.

Parameters
nEventToSelectInteger number. Every nth event is processed by the chain, all other events are skipped.
InvertSelectionInverts the selection. If true, every nth event is skipped, all other events are processed.
Author
U Einhaus, DESY
Version
Id:
SelectNthEventsProcessor.h,v 0.1 2015-06-30

Member Function Documentation

void SelectNthEventsProcessor::init ( )
virtual

Called at the begin of the job before anything is read.

Use to initialize the processor, e.g. book histograms.


The documentation for this class was generated from the following files: