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 
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
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
std::map< std::string, int > m_algMap[2]
Monitors the cpu time usage of each algorithm.
virtual void beforeExecute(INamedInterface *alg)
virtual StatusCode finalize()
BooleanProperty m_abort
void incrMap(const std::string &algName, int level)
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
The IMessage is the interface implemented by the message service.
Definition: IMessageSvc.h:57
IInterface compliant class extending IInterface with the name() method.
virtual void afterExecute(INamedInterface *alg, const StatusCode &)
BooleanProperty m_throw
virtual ~AlgErrorAuditor()=default
virtual StatusCode initialize()
const std::string & name() const override
Definition: Auditor.cpp:212
AlgErrorAuditor(const std::string &name, ISvcLocator *pSvcLocator)
Base class from which all concrete auditor classes should be derived.
Definition: Auditor.h:34