10 using namespace marlin ;
16 EventSelector::EventSelector() :
Processor(
"EventSelector") {
19 _description =
"EventSelector returns true if given event was specified in EventList" ;
27 "event list - pairs of Eventnumber RunNumber" ,
46 for(
unsigned i=0 ; i < nEvts ; i+=2 ) {
77 streamlog_out(DEBUG) <<
" processing event: " << evt->getEventNumber()
78 <<
" in run: " << evt->getRunNumber()
79 <<
" - in event list : " << isInList
virtual void processEvent(LCEvent *evt)
Called for every event - the working horse.
void registerProcessorParameter(const std::string ¶meterName, const std::string ¶meterDescription, T ¶meter, const T &defaultVal, int setSize=0)
Register a steering variable for this processor - call in constructor of processor.
IntVec _evtList
Input collection name.
virtual void end()
Called after data processing for clean up.
virtual void processRunHeader(LCRunHeader *run)
Called for every run.
virtual void check(LCEvent *evt)
Called for every event - right after processEvent() has been called for this processor.
void printParameters()
Print the parameters and their values depending on the given verbosity level.
virtual void modifyEvent(LCEvent *evt)
void setReturnValue(bool val)
Set the return value for this processor - typically at end of processEvent().
virtual void init()
Called at the begin of the job before anything is read.
Base class for Marlin processors.
EventSelector aEventSelector
std::string _description
Describes what the processor does.