| The Gaudi Framework v32r1 (f65d50dc)

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 namespace CounterSummary {
15 enum SaveType {
16 SaveSimpleCounter = 0,
17 SaveStatEntity,
18 SaveAlwaysSimpleCounter,
19 SaveAlwaysStatEntity
20 };
21 } // namespace CounterSummary
22 } // namespace Gaudi
23
34 class GAUDI_API ICounterSummarySvc : virtual public IService {
35
36 public:
38 DeclareInterfaceID( ICounterSummarySvc, 1, 0 );
39
48 virtual void
49 addCounter( const std::string, const std::string name, const StatEntity&,
50 const Gaudi::CounterSummary::SaveType saveType = Gaudi::CounterSummary::SaveSimpleCounter ) = 0;
51
60 virtual void
61 addCounter( const std::string, const std::string name, const Stat&,
62 const Gaudi::CounterSummary::SaveType saveType = Gaudi::CounterSummary::SaveSimpleCounter ) = 0;
63 };
64
65 #endif
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:41
Stat
Small wrapper class for easy manipulation with generic counters and IStatSvc interface.
Definition: Stat.h:46
Gaudi::CounterSummary::SaveAlwaysStatEntity
store always, store only the flag()
Definition: ICounterSummarySvc.h:19
std::string
STL class.
Gaudi::CounterSummary::SaveAlwaysSimpleCounter
store all information
Definition: ICounterSummarySvc.h:18
Gaudi::CounterSummary::SaveStatEntity
store only the flag()
Definition: ICounterSummarySvc.h:17
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:15
Gaudi::CounterSummary::SaveSimpleCounter
Definition: ICounterSummarySvc.h:16
IService::DeclareInterfaceID
DeclareInterfaceID(IService, 4, 0)
InterfaceID.
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
ICounterSummarySvc
Simple service interface to collect counters to persist in a summary file.
Definition: ICounterSummarySvc.h:34
Gaudi
Header file for std:chrono::duration-based Counters.
Definition: __init__.py:1