| The Gaudi Framework v32r1 (f65d50dc)

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 public:
9 EventCounter( const std::string& name, ISvcLocator* pSvcLocator );
10
11 /*****************************
12 ** Public Function Members **
13 *****************************/
14
15 StatusCode initialize() override;
16 StatusCode execute() override;
17 StatusCode finalize() override;
18
19 private:
20 /**************************
21 ** Private Data Members **
22 **************************/
23
29 Gaudi::CheckedProperty<int> m_frequency{this, "Frequency", 1};
30
35 int m_skip = 0;
36
40 int m_total = 0;
41 };
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:41
std::string
STL class.
Gaudi::Algorithm::initialize
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
Definition: Algorithm.h:180
Gaudi::CheckedProperty
Property< TYPE, Details::Property::BoundedVerifier< TYPE >, HANDLERS > CheckedProperty
Definition: Property.h:713
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
Gaudi::Algorithm::finalize
StatusCode finalize() override
the default (empty) implementation of IStateful::finalize() method
Definition: Algorithm.h:186
Algorithm::execute
StatusCode execute() override=0
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:56
Property.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71