ATLAS Offline Software
Control
GaudiSequencer
src
AthEventCounter.h
Go to the documentation of this file.
1
3
/*
4
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// AthEventCounter.h
8
// Header file for class AthEventCounter
9
// Author: S.Binet<binet@cern.ch>
11
#ifndef GAUDISEQUENCER_ATHEVENTCOUNTER_H
12
#define GAUDISEQUENCER_ATHEVENTCOUNTER_H
13
14
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
15
#include "Gaudi/Property.h"
16
#include <atomic>
17
18
class
AthEventCounter
:
public
AthReentrantAlgorithm
19
{
20
public
:
21
22
using
AthReentrantAlgorithm::AthReentrantAlgorithm
;
23
~AthEventCounter
( ) =
default
;
24
25
/*****************************
26
** Public Function Members **
27
*****************************/
28
29
StatusCode
initialize
();
30
StatusCode
execute
(
const
EventContext& ctx)
const
;
31
StatusCode
finalize
();
32
33
private
:
34
35
/**************************
36
** Private Data Members **
37
**************************/
38
44
Gaudi::Property<int>
m_frequency
{
this
,
"Frequency"
, 1,
45
"The frequency with which the number of events should be "
46
"reported. The default is 1, corresponding to every event"
};
47
51
mutable
std::atomic<int>
m_total
{0};
52
};
53
54
#endif // GAUDISEQUENCER_ATHEVENTCOUNTER_H
55
AthEventCounter::execute
StatusCode execute(const EventContext &ctx) const
Definition:
AthEventCounter.cxx:23
AthEventCounter::~AthEventCounter
~AthEventCounter()=default
AthEventCounter
Definition:
AthEventCounter.h:19
AthEventCounter::m_frequency
Gaudi::Property< int > m_frequency
The frequency with which the number of events should be reported.
Definition:
AthEventCounter.h:44
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition:
AthReentrantAlgorithm.h:83
AthEventCounter::finalize
StatusCode finalize()
Definition:
AthEventCounter.cxx:39
AthReentrantAlgorithm::AthReentrantAlgorithm
AthReentrantAlgorithm()
Default constructor:
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthReentrantAlgorithm.h
AthEventCounter::m_total
std::atomic< int > m_total
The total events seen.
Definition:
AthEventCounter.h:51
AthEventCounter::initialize
StatusCode initialize()
Definition:
AthEventCounter.cxx:16
Generated on Thu Nov 7 2024 21:10:25 for ATLAS Offline Software by
1.8.18