#include <Monitor.h>
Collaboration diagram for Atlfast::Monitor:
Public Methods | |
Monitor (const std::string &name, ISvcLocator *pSvcLocator) | |
Standard Athena-Algorithm Constructor. | |
virtual | ~Monitor () |
Default Destructor. | |
virtual StatusCode | initialize () |
Standard Athena-Algorithm method. | |
virtual StatusCode | execute () |
Standard Athena-Algorithm method. | |
virtual StatusCode | finalize () |
Standard Athena-Algorithm method. | |
Private Attributes | |
int | m_nEvents |
int | m_frequency |
string | m_comment |
|
Standard Athena-Algorithm Constructor.
Definition at line 26 of file Monitor.cxx. References m_comment, and m_frequency.
00030 : Algorithm( name, pSvcLocator ) 00031 { 00032 00033 // Set the parameter defaults. 00034 00035 // Declare the paramemters to Gaudi so that 00036 // they can be over-written via the job options file 00037 m_frequency = 50; 00038 m_comment ="no comment"; 00039 declareProperty( "Frequency",m_frequency ); 00040 declareProperty( "Comment", m_comment ); 00041 00042 } |
|
Default Destructor.
Definition at line 48 of file Monitor.cxx.
00048 {
00049 MsgStream log( messageService(), name() ) ;
00050 log << MSG::INFO << "destructor, deleting smearer" << endreq;
00051 }
|
|
Standard Athena-Algorithm method.
Definition at line 56 of file Monitor.cxx. References m_nEvents.
00057 { 00058 00059 m_nEvents=0; 00060 return StatusCode::SUCCESS ; 00061 } |
|
Standard Athena-Algorithm method.
Definition at line 77 of file Monitor.cxx. References m_comment, m_frequency, and m_nEvents.
00078 { 00079 00080 MsgStream log( messageService(), name() ) ; 00081 00082 ++m_nEvents; 00083 // Counter of events processed 00084 if( m_nEvents % m_frequency == 0) { 00085 log << MSG::INFO << " processing event number " 00086 << m_nEvents <<" "<<m_comment<<endreq; 00087 } 00088 00089 return StatusCode::SUCCESS; 00090 } |
|
Standard Athena-Algorithm method.
Definition at line 67 of file Monitor.cxx.
00068 { 00069 00070 MsgStream log( messageService(), name() ) ; 00071 00072 log << MSG::INFO << "Finalizing" << endreq; 00073 00074 return StatusCode::SUCCESS ; 00075 } |
|
Definition at line 69 of file Monitor.h. Referenced by execute(), and initialize(). |
|
|
|
|