| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ChronoAuditor.h
Go to the documentation of this file.
1 #ifndef GAUDIAUD_CHRONOAUDITOR_H
2 #define GAUDIAUD_CHRONOAUDITOR_H
3
4 #include "CommonAuditor.h"
5
6 #include "GaudiKernel/IChronoStatSvc.h"
7
14 class ChronoAuditor : virtual public CommonAuditor {
15 public:
16 ChronoAuditor(const std::string& name, ISvcLocator* pSvcLocator);
17
18 virtual ~ChronoAuditor();
19
20 virtual StatusCode initialize();
21
22 private:
24 virtual void i_before(CustomEventTypeRef evt, const std::string& caller);
25
27 virtual void i_after(CustomEventTypeRef evt, const std::string& caller, const StatusCode& sc);
28
30 inline std::string i_id(CustomEventTypeRef evt, const std::string& caller) {
31 return caller + ":" + evt;
32 }
33
34 SmartIF<IChronoStatSvc>& chronoSvc() { return m_chronoSvc; }
35 SmartIF<IChronoStatSvc> m_chronoSvc;
36 };
37
38 #endif