The Gaudi Framework  v33r0 (d5ea422b)
EventCounter.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 #include "GaudiKernel/Algorithm.h"
12 #include "GaudiKernel/Property.h"
13 
15 public:
19  EventCounter( const std::string& name, ISvcLocator* pSvcLocator );
20 
21  /*****************************
22  ** Public Function Members **
23  *****************************/
24 
25  StatusCode initialize() override;
26  StatusCode execute() override;
27  StatusCode finalize() override;
28 
29 private:
30  /**************************
31  ** Private Data Members **
32  **************************/
33 
39  Gaudi::CheckedProperty<int> m_frequency{this, "Frequency", 1};
40 
45  int m_skip = 0;
46 
50  int m_total = 0;
51 };
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:35
STL class.
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
Definition: Algorithm.h:176
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
the default (empty) implementation of IStateful::finalize() method
Definition: Algorithm.h:182
StatusCode execute() override=0
Alias for backward compatibility.
Definition: Algorithm.h:66
#define GAUDI_API
Definition: Kernel.h:81