Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Atlfast::Monitor Class Reference

#include <Monitor.h>

Collaboration diagram for Atlfast::Monitor:

Collaboration graph
[legend]
List of all members.

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

Constructor & Destructor Documentation

Atlfast::Monitor::Monitor const std::string &    name,
ISvcLocator *    pSvcLocator
 

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   }

Atlfast::Monitor::~Monitor   [virtual]
 

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   }

Member Function Documentation

StatusCode Atlfast::Monitor::initialize   [virtual]
 

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   }

StatusCode Atlfast::Monitor::execute   [virtual]
 

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   }

StatusCode Atlfast::Monitor::finalize   [virtual]
 

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   }

Member Data Documentation

int Atlfast::Monitor::m_nEvents [private]
 

Definition at line 69 of file Monitor.h.

Referenced by execute(), and initialize().

int Atlfast::Monitor::m_frequency [private]
 

Definition at line 70 of file Monitor.h.

Referenced by execute(), and Monitor().

string Atlfast::Monitor::m_comment [private]
 

Definition at line 71 of file Monitor.h.

Referenced by execute(), and Monitor().


The documentation for this class was generated from the following files:
Generated on Tue Mar 18 11:18:57 2003 for AtlfastAlgs by doxygen1.3-rc1