| The Gaudi Framework v29r0 (ff2e7097)

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

- File List
- File Members

EventCounter.h
Go to the documentation of this file.
1 #include "GaudiKernel/Algorithm.h"
2 #include "GaudiKernel/Property.h"
3
4 class GAUDI_API EventCounter : public Algorithm
5 {
6 public:
10 EventCounter( const std::string& name, ISvcLocator* pSvcLocator );
11
15 ~EventCounter() override = default;
16
17 /*****************************
18 ** Public Function Members **
19 *****************************/
20
21 StatusCode initialize() override;
22 StatusCode execute() override;
23 StatusCode finalize() override;
24
25 private:
26 /**************************
27 ** Private Data Members **
28 **************************/
29
35 Gaudi::CheckedProperty<int> m_frequency{this, "Frequency", 1};
36
41 int m_skip = 0;
42
46 int m_total = 0;
47 };
Algorithm.h
EventCounter
Definition: EventCounter.h:4
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
gaudiComponentHelp.name
name
Definition: gaudiComponentHelp.py:32
Gaudi::Functional::execute
StatusCode execute() override final
Algorithm::finalize
StatusCode finalize() override
the default (empty) implementation of IStateful::finalize() method
Definition: Algorithm.h:185
std::string
STL class.
Gaudi::CheckedProperty
Property< TYPE, Details::Property::BoundedVerifier< TYPE >, HANDLERS > CheckedProperty
Definition: Property.h:693
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:28
Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:78
Property.h
Algorithm::initialize
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
Definition: Algorithm.h:179
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110