| The Gaudi Framework v27r1

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

- File List
- File Members

Prescaler.h
Go to the documentation of this file.
1
2 #include "GaudiAlg/GaudiAlgorithm.h"
3 #include "GaudiKernel/Property.h"
4
5 class GAUDI_API Prescaler: public GaudiAlgorithm
6 {
7
8 public:
9
13 Prescaler( std::string name, ISvcLocator* pSvcLocator );
14
18 ~Prescaler( ) override = default;
19
20 /*****************************
21 ** Public Function Members **
22 *****************************/
23
24 StatusCode initialize() override;
25 StatusCode execute() override;
26 StatusCode finalize() override;
27
28 private:
29
33 DoubleProperty m_percentPass;
34
38 int m_pass = 0;
39
43 int m_seen = 0;
44 };
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:28
Prescaler::m_percentPass
DoubleProperty m_percentPass
Percentage of events that should be passed.
Definition: Prescaler.h:33
GaudiAlgorithm::initialize
StatusCode initialize() override
standard initialization method
Definition: GaudiAlgorithm.cpp:48
GaudiAlgorithm.h
GaudiAlgorithm::execute
StatusCode execute() override
standard execution method
Definition: GaudiAlgorithm.cpp:76
std::string
STL class.
SimpleProperty< double >
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
GaudiAlgorithm::finalize
StatusCode finalize() override
standard finalization method
Definition: GaudiAlgorithm.cpp:62
GaudiAlgorithm
The useful base class for data processing algorithms.
Definition: GaudiAlgorithm.h:93
Property.h
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107
Prescaler
Definition: Prescaler.h:5