|
Gaudi Framework, version v22r2 |
| Home | Generated: Tue May 10 2011 |
#include <EventCounter.h>


Public Member Functions | |
| EventCounter (const std::string &name, ISvcLocator *pSvcLocator) | |
| Constructor(s) | |
| ~EventCounter () | |
| Destructor. | |
| StatusCode | initialize () |
| the default (empty) implementation of IStateful::initialize() method | |
| StatusCode | execute () |
| StatusCode | finalize () |
| the default (empty) implementation of IStateful::finalize() method | |
Private Attributes | |
| IntegerProperty | m_frequency |
| The frequency with which the number of events should be reported. | |
| int | m_skip |
| The number of events skipped since the last time the count was reported. | |
| int | m_total |
| The total events seen. | |
Definition at line 4 of file EventCounter.h.
| EventCounter::EventCounter | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator | ||
| ) |
Constructor(s)
Definition at line 9 of file EventCounter.cpp.
: Algorithm(name, pSvcLocator), m_skip ( 0 ), m_total( 0 ) { declareProperty( "Frequency", m_frequency=1 ); m_frequency.verifier().setBounds( 0, 1000 ); }
| EventCounter::~EventCounter | ( | ) |
| StatusCode EventCounter::execute | ( | ) |
Definition at line 34 of file EventCounter.cpp.
| StatusCode EventCounter::finalize | ( | void | ) | [virtual] |
the default (empty) implementation of IStateful::finalize() method
Reimplemented from Algorithm.
Definition at line 50 of file EventCounter.cpp.
| StatusCode EventCounter::initialize | ( | ) | [virtual] |
the default (empty) implementation of IStateful::initialize() method
Reimplemented from Algorithm.
Definition at line 26 of file EventCounter.cpp.
{
MsgStream log(msgSvc(), name());
log << MSG::INFO << name( ) << ":EventCounter::initialize - Frequency: " << m_frequency << endmsg;
return StatusCode::SUCCESS;
}
IntegerProperty EventCounter::m_frequency [private] |
The frequency with which the number of events should be reported.
The default is 1, corresponding to every event.
Definition at line 36 of file EventCounter.h.
int EventCounter::m_skip [private] |
The number of events skipped since the last time the count was reported.
Definition at line 42 of file EventCounter.h.
int EventCounter::m_total [private] |
The total events seen.
Definition at line 47 of file EventCounter.h.