32 void init()
override ;
48 "Print event number every N events", 1 } ;
60 setDescription(
"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." ) ;
70 log<DEBUG>() <<
"INIT CALLED " << std::endl ;
84 auto eventid =
_nEvt.fetch_add(1) ;
87 <<
" ===== Run : " << std::setw(7) <<
_nRun 88 <<
" Event: " << std::setw(7) << eventid << std::endl;
95 log<MESSAGE>() <<
"Statusmonitor::end() " <<
name() <<
" processed " <<
_nEvt <<
" events in " <<
_nRun <<
" runs" << std::endl ;
void end() override
Called after data processing for clean up.
const std::string & name() const
Get the component name.
void setRuntimeOption(ERuntimeOption option, bool value)
Force the runtime option to a given boolean value.
Simple processor for writing out a status message every n-th event.
void init() override
Initialize the processor.
#define MARLINMT_DECLARE_PROCESSOR(Class)
void processRunHeader(RunHeader *run) override
Called for every run.
void setDescription(const std::string &desc)
Set the component description.
void processEvent(EventStore *evt) override
Called for every event - the working horse.
Whether the processor has to be executed in a critical section.
void printParameters() const
Print the component parameters.