| The Gaudi Framework v27r1

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

- File List
- File Members

ICounterSummarySvc.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_ICOUNTERSUMMARYSVC_H
2 #define GAUDIKERNEL_ICOUNTERSUMMARYSVC_H
3
4 // Include files
5 #include "GaudiKernel/IService.h"
6 #include <string>
7
8 //forward declarations
9 class StatEntity;
10 class Stat;
11
12 namespace Gaudi
13 {
14 namespace CounterSummary
15 {
17 enum SaveType
18 {
19 SaveSimpleCounter=0,
20 SaveStatEntity,
21 SaveAlwaysSimpleCounter,
22 SaveAlwaysStatEntity
23 };
24 }
25 }
26
37 class GAUDI_API ICounterSummarySvc: virtual public IService {
38
39 public:
41 DeclareInterfaceID(ICounterSummarySvc,1,0);
42
51 virtual void addCounter(
52 const std::string ,
53 const std::string name,
54 const StatEntity &,
55 const Gaudi::CounterSummary::SaveType saveType=
56 Gaudi::CounterSummary::SaveSimpleCounter)=0;
57
66 virtual void addCounter(
67 const std::string ,
68 const std::string name,
69 const Stat &,
70 const Gaudi::CounterSummary::SaveType saveType=
71 Gaudi::CounterSummary::SaveSimpleCounter)=0;
72
74 ~ICounterSummarySvc() override = default;
75 };
76
77 #endif
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:28
Stat
Small wrapper class for easy manipulation with generic counters and IStatSvc&ICounterSvc interface...
Definition: Stat.h:46
Gaudi::CounterSummary::SaveAlwaysStatEntity
store always, store only the flag()
Definition: ICounterSummarySvc.h:22
std::string
STL class.
Gaudi::CounterSummary::SaveAlwaysSimpleCounter
store all information
Definition: ICounterSummarySvc.h:21
Gaudi::CounterSummary::SaveStatEntity
store only the flag()
Definition: ICounterSummarySvc.h:20
IService
General service interface definition.
Definition: IService.h:18
IService.h
Gaudi::CounterSummary::SaveType
SaveType
How is the counter to be saved?
Definition: ICounterSummarySvc.h:17
Gaudi::CounterSummary::SaveSimpleCounter
Definition: ICounterSummarySvc.h:19
IService::DeclareInterfaceID
DeclareInterfaceID(IService, 4, 0)
InterfaceID.
StatEntity
The basic counter used for Monitoring purposes.
Definition: StatEntity.h:64
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
ICounterSummarySvc
Simple service interface to collect counters to persist in a summary file.
Definition: ICounterSummarySvc.h:37
Gaudi
Helper functions to set/get the application return code.
Definition: __init__.py:1