11 using namespace lcio ;
12 using namespace marlin ;
21 _description =
"Statusmonitor prints out information on running Marlin Job: Prints number of runs run and current number of the event. Counting is sequential and not the run or event ID." ;
24 "Print the event number every N events",
33 streamlog_out(DEBUG) <<
"INIT CALLED " <<
std::endl ;
50 streamlog_out(MESSAGE)
66 streamlog_out(MESSAGE) <<
"Statusmonitor::end() " <<
name() <<
" processed " <<
_nEvt <<
" events in " <<
_nRun <<
" runs " <<
std::endl ;
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.
virtual void processEvent(LCEvent *evt)
Called for every event - the working horse.
virtual const std::string & name() const
Return name of this processor.
virtual void end()
Called after data processing for clean up.
Statusmonitor aStatusmonitor
void printParameters()
Print the parameters and their values depending on the given verbosity level.
virtual void processRunHeader(LCRunHeader *run)
Called for every run.
virtual void init()
Called at the begin of the job before anything is read.
Base class for Marlin processors.
std::string _description
Describes what the processor does.
virtual void check(LCEvent *evt)
Called for every event - right after processEvent() has been called for this processor.
Simple processor for writing out a status message every n-th event.