| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

AlgErrorAuditor.h
Go to the documentation of this file.
1 #ifndef GAUDIAUD_ALGERRORAUDITOR_H
2 #define GAUDIAUD_ALGERRORAUDITOR_H
3
4 #include "GaudiKernel/Auditor.h"
5 #include <map>
6 #include <string>
7
8 class IMessageSvc;
9
15 class AlgErrorAuditor : virtual public Auditor {
16 public:
17 AlgErrorAuditor(const std::string& name, ISvcLocator* pSvcLocator);
18 virtual ~AlgErrorAuditor() = default;
19
20 virtual StatusCode initialize();
21 virtual StatusCode finalize();
22
23 virtual void beforeExecute(INamedInterface* alg);
24 virtual void afterExecute(INamedInterface* alg, const StatusCode&);
25 private:
26
27 BooleanProperty m_abort, m_throw;
28
29 void incrMap(const std::string& algName, int level);
30
31 int m_error;
32 int m_fatal;
33
34 std::map <std::string, int> m_algMap[2];
35
36 };
37
38 #endif
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
AlgErrorAuditor::m_algMap
std::map< std::string, int > m_algMap[2]
Definition: AlgErrorAuditor.h:34
AlgErrorAuditor
Monitors the cpu time usage of each algorithm.
Definition: AlgErrorAuditor.h:15
AlgErrorAuditor::m_error
int m_error
Definition: AlgErrorAuditor.h:31
std::map< std::string, int >
AlgErrorAuditor::beforeExecute
virtual void beforeExecute(INamedInterface *alg)
Definition: AlgErrorAuditor.cpp:18
AlgErrorAuditor::finalize
virtual StatusCode finalize()
Definition: AlgErrorAuditor.cpp:80
AlgErrorAuditor::m_abort
BooleanProperty m_abort
Definition: AlgErrorAuditor.h:27
std::string
STL class.
SimpleProperty< bool >
AlgErrorAuditor::incrMap
void incrMap(const std::string &algName, int level)
Definition: AlgErrorAuditor.cpp:110
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
IMessageSvc
The IMessage is the interface implemented by the message service.
Definition: IMessageSvc.h:57
AlgErrorAuditor::m_fatal
int m_fatal
Definition: AlgErrorAuditor.h:32
INamedInterface
IInterface compliant class extending IInterface with the name() method.
Definition: INamedInterface.h:15
AlgErrorAuditor::afterExecute
virtual void afterExecute(INamedInterface *alg, const StatusCode &)
Definition: AlgErrorAuditor.cpp:36
AlgErrorAuditor::m_throw
BooleanProperty m_throw
Definition: AlgErrorAuditor.h:27
AlgErrorAuditor::~AlgErrorAuditor
virtual ~AlgErrorAuditor()=default
AlgErrorAuditor::initialize
virtual StatusCode initialize()
Definition: AlgErrorAuditor.cpp:24
Auditor::name
const std::string & name() const override
Definition: Auditor.cpp:202
gaudirun.level
level
Definition: gaudirun.py:261
Auditor.h
AlgErrorAuditor::AlgErrorAuditor
AlgErrorAuditor(const std::string &name, ISvcLocator *pSvcLocator)
Definition: AlgErrorAuditor.cpp:8
Auditor
Base class from which all concrete auditor classes should be derived.
Definition: Auditor.h:35