The Gaudi Framework  master (37c0b60a)
ContextEventCounter.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 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 #ifndef SRC_CONTEXTEVENTCOUNTER_H
12 #define SRC_CONTEXTEVENTCOUNTER_H 1
13 // Include files
14 // from Gaudi
15 #include <GaudiKernel/Algorithm.h>
17 
24 class ContextEventCounterPtr final : public Algorithm {
25 public:
26  using Algorithm::Algorithm;
27  StatusCode execute() override;
28  StatusCode finalize() override;
29 private:
31 };
32 
33 class ContextEventCounterData final : public Algorithm {
34 public:
35  using Algorithm::Algorithm;
36  StatusCode execute() override;
37  StatusCode finalize() override;
38 private:
40 };
41 
42 #endif // SRC_CONTEXTEVENTCOUNTER_H
ContextEventCounterPtr::execute
StatusCode execute() override
Standard constructor.
Definition: ContextEventCounter.cpp:24
ContextEventCounterData::finalize
StatusCode finalize() override
Algorithm finalization.
Definition: ContextEventCounter.cpp:77
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:58
Algorithm.h
ContextEventCounterPtr::m_ctxtSpecCounter
Gaudi::Hive::ContextSpecificPtr< int > m_ctxtSpecCounter
Definition: ContextEventCounter.h:30
ContextEventCounterData
Definition: ContextEventCounter.h:33
ContextSpecificPtr.h
StatusCode
Definition: StatusCode.h:65
Gaudi::Hive::ContextSpecificPtr< int >
ContextEventCounterData::execute
StatusCode execute() override
Standard constructor.
Definition: ContextEventCounter.cpp:65
ContextEventCounterPtr
Definition: ContextEventCounter.h:24
Gaudi::Hive::ContextSpecificData< int >
Gaudi::Algorithm::Algorithm
Algorithm(std::string name, ISvcLocator *svcloc, std::string version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.h:101
ContextEventCounterData::m_ctxtSpecCounter
Gaudi::Hive::ContextSpecificData< int > m_ctxtSpecCounter
Definition: ContextEventCounter.h:39
ContextEventCounterPtr::finalize
StatusCode finalize() override
Algorithm finalization.
Definition: ContextEventCounter.cpp:41