The Gaudi Framework  v33r1 (b1225454)
Prescaler.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 
13 #include "GaudiKernel/Property.h"
14 
16 
17 public:
21  Prescaler( std::string name, ISvcLocator* pSvcLocator );
22 
23  /*****************************
24  ** Public Function Members **
25  *****************************/
26 
27  StatusCode initialize() override;
28  StatusCode execute() override;
29  StatusCode finalize() override;
30 
31 private:
35  Gaudi::CheckedProperty<double> m_percentPass{this, "PercentPass", 100.0,
36  "percentage of events that should be passed"};
37 
41  int m_pass = 0;
42 
46  int m_seen = 0;
47 };
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:35
StatusCode initialize() override
standard initialization method
Header file for class GaudiAlgorithm.
StatusCode execute() override
standard execution method
STL class.
Property< TYPE, Details::Property::BoundedVerifier< TYPE >, HANDLERS > CheckedProperty
Definition: Property.h:741
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
StatusCode finalize() override
standard finalization method
The useful base class for data processing algorithms.
#define GAUDI_API
Definition: Kernel.h:81