The Gaudi Framework
v36r9p1 (5c15b2bb)
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 <
Gaudi/Property.h
>
13
14
class
GAUDI_API
EventCounter
:
public
Algorithm
{
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
};
std::string
STL class.
Algorithm::execute
StatusCode execute() override=0
ISvcLocator
Definition:
ISvcLocator.h:46
Gaudi::Algorithm::initialize
StatusCode initialize() override
the default (empty) implementation of IStateful::initialize() method
Definition:
Algorithm.h:178
Algorithm
Alias for backward compatibility.
Definition:
Algorithm.h:58
Algorithm.h
EventCounter
Definition:
EventCounter.h:14
TimingHistograms.name
name
Definition:
TimingHistograms.py:25
StatusCode
Definition:
StatusCode.h:65
Gaudi::Algorithm::finalize
StatusCode finalize() override
the default (empty) implementation of IStateful::finalize() method
Definition:
Algorithm.h:184
GAUDI_API
#define GAUDI_API
Definition:
Kernel.h:81
Property.h
GaudiAlg
include
GaudiAlg
EventCounter.h
Generated on Fri Feb 3 2023 18:02:51 for The Gaudi Framework by
1.8.18