| The Gaudi Framework v29r1 (5cd95fa2)

- 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 : public Auditor
16 {
17 public:
18 using Auditor::Auditor;
19 ~AlgErrorAuditor() override = default;
20
21 StatusCode initialize() override;
22 StatusCode finalize() override;
23
24 void beforeExecute( INamedInterface* alg ) override;
25 void afterExecute( INamedInterface* alg, const StatusCode& ) override;
26
27 private:
28 Gaudi::Property<bool> m_abort{this, "Abort", false, "abort job upon illegal Algorithm return code"};
29 Gaudi::Property<bool> m_throw{this, "Throw", false, "throw GaudiException upon illegal Algorithm return code"};
30
31 void incrMap( const std::string& algName, int level );
32
33 int m_error = 0;
34 int m_fatal = 0;
35
36 std::map<std::string, int> m_algMap[2];
37 };
38
39 #endif
AlgErrorAuditor::finalize
StatusCode finalize() override
Definition: AlgErrorAuditor.cpp:68
Gaudi::Property
Implementation of property with value of concrete type.
Definition: Property.h:319
AlgErrorAuditor::m_algMap
std::map< std::string, int > m_algMap[2]
Definition: AlgErrorAuditor.h:36
AlgErrorAuditor
Monitors the cpu time usage of each algorithm.
Definition: AlgErrorAuditor.h:15
AlgErrorAuditor::m_error
int m_error
Definition: AlgErrorAuditor.h:33
AlgErrorAuditor::beforeExecute
void beforeExecute(INamedInterface *alg) override
Definition: AlgErrorAuditor.cpp:8
AlgErrorAuditor::~AlgErrorAuditor
~AlgErrorAuditor() override=default
std::map< std::string, int >
std::string
STL class.
Auditor::Auditor
Auditor(const std::string &name, ISvcLocator *svcloc)
Constructor.
Definition: Auditor.cpp:12
AlgErrorAuditor::incrMap
void incrMap(const std::string &algName, int level)
Definition: AlgErrorAuditor.cpp:95
AlgErrorAuditor::afterExecute
void afterExecute(INamedInterface *alg, const StatusCode &) override
Definition: AlgErrorAuditor.cpp:25
AlgErrorAuditor::initialize
StatusCode initialize() override
Definition: AlgErrorAuditor.cpp:14
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
IMessageSvc
The IMessage is the interface implemented by the message service.
Definition: IMessageSvc.h:38
AlgErrorAuditor::m_fatal
int m_fatal
Definition: AlgErrorAuditor.h:34
AlgErrorAuditor::m_abort
Gaudi::Property< bool > m_abort
Definition: AlgErrorAuditor.h:28
AlgErrorAuditor::m_throw
Gaudi::Property< bool > m_throw
Definition: AlgErrorAuditor.h:29
INamedInterface
IInterface compliant class extending IInterface with the name() method.
Definition: INamedInterface.h:15
gaudirun.level
level
Definition: gaudirun.py:271
Auditor.h
Auditor
Base class from which all concrete auditor classes should be derived.
Definition: Auditor.h:35