9 #include "streamlog/streamlog.h"
21 _doCalibration(false),
24 _description =
"Simple processor to test the marlin application."
25 " Prints run and event number." ;
30 streamlog_out( MESSAGE ) <<
"TestProcessor::init() " <<
name()
37 #ifdef MARLIN_VERSION_GE
38 #if MARLIN_VERSION_GE( 0, 9, 8 )
39 streamlog_out( DEBUG ) <<
" marlin version is g.e. 0.9.8 " <<
std::endl ;
54 streamlog_out( MESSAGE ) <<
" processRun() "
55 << run->getRunNumber()
85 streamlog_out( DEBUG ) <<
" initialize _doCalibration and _nLoops in first event : " << evt->getEventNumber()
86 <<
" run " << evt->getRunNumber() <<
std::endl ;
96 streamlog_out( MESSAGE) <<
"processEvent() ---CALIBRATING ------ "
97 <<
" in event " << evt->getEventNumber() <<
" (run "
98 << evt->getRunNumber() <<
") "
127 streamlog_out(MESSAGE) <<
" processing event " << evt->getEventNumber()
128 <<
" in run " << evt->getRunNumber()
151 streamlog_out(DEBUG) <<
" check() "
152 << evt->getEventNumber()
153 <<
" (run " << evt->getRunNumber() <<
") "
167 streamlog_out(MESSAGE) <<
" end() "
168 <<
" processed " <<
_nEvt <<
" events in "
174 message<DEBUG>(
" and this is really the final DEBUG message ....") ;
virtual void check(LCEvent *evt)
Called for every event - right after processEvent() has been called for this processor.
RewindDataFilesException used to stop the current proccessing of events, rewind to the first event an...
virtual const std::string & name() const
Return name of this processor.
virtual void processRunHeader(LCRunHeader *run)
Called for every run.
TestProcessor aTestProcessor
virtual std::shared_ptr< StringParameters > parameters()
Return parameters defined for this Processor.
void setReturnValue(bool val)
Set the return value for this processor - typically at end of processEvent().
virtual const std::string & logLevelName() const
Return name of the local verbosity level of this processor - "" if not set.
bool isFirstEvent()
True if first event in processEvent(evt) - use this e.g.
void printEndMessage() const
Test method for const.
virtual void processEvent(LCEvent *evt)
Called for every event - the working horse.
Base class for Marlin processors.
virtual void init()
Called at the begin of the job before anything is read.
std::string _description
Describes what the processor does.
virtual void end()
Called after data processing for clean up.
Simple processor for testing.