| The Gaudi Framework v32r1 (f65d50dc)

ContextEventCounter.h
Go to the documentation of this file.
1 #ifndef SRC_CONTEXTEVENTCOUNTER_H
2 #define SRC_CONTEXTEVENTCOUNTER_H 1
3 // Include files
4 // from Gaudi
5 #include "GaudiKernel/Algorithm.h"
6 #include "GaudiKernel/ContextSpecificPtr.h"
7
14 class ContextEventCounterPtr final : public Algorithm {
15 public:
16 using Algorithm::Algorithm;
17 StatusCode execute() override;
18 StatusCode finalize() override;
19 private:
20 Gaudi::Hive::ContextSpecificPtr<int> m_ctxtSpecCounter;
21 };
22
23 class ContextEventCounterData final : public Algorithm {
24 public:
25 using Algorithm::Algorithm;
26 StatusCode execute() override;
27 StatusCode finalize() override;
28 private:
29 Gaudi::Hive::ContextSpecificData<int> m_ctxtSpecCounter;
30 };
31
32 #endif // SRC_CONTEXTEVENTCOUNTER_H
Algorithm.h
ContextEventCounterPtr::finalize
StatusCode finalize() override
Algorithm finalization.
Definition: ContextEventCounter.cpp:31
ContextEventCounterData::m_ctxtSpecCounter
Gaudi::Hive::ContextSpecificData< int > m_ctxtSpecCounter
Definition: ContextEventCounter.h:29
Gaudi::Algorithm::Algorithm
Algorithm(const std::string &name, ISvcLocator *svcloc, const std::string &version=PACKAGE_VERSION)
Constructor.
Definition: Algorithm.cpp:48
ContextEventCounterData::execute
StatusCode execute() override
Standard constructor.
Definition: ContextEventCounter.cpp:55
ContextEventCounterPtr
Definition: ContextEventCounter.h:14
ContextEventCounterPtr::m_ctxtSpecCounter
Gaudi::Hive::ContextSpecificPtr< int > m_ctxtSpecCounter
Definition: ContextEventCounter.h:20
Gaudi::Hive::ContextSpecificPtr
Simple implementation of a smart pointer with different values for different event contexts (slots).
Definition: ContextSpecificPtr.h:30
ContextEventCounterData
Definition: ContextEventCounter.h:23
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:50
ContextEventCounterPtr::execute
StatusCode execute() override
Standard constructor.
Definition: ContextEventCounter.cpp:14
ContextSpecificPtr.h
Algorithm
Alias for backward compatibility.
Definition: Algorithm.h:56
Gaudi::Hive::ContextSpecificData
Implementation of a context specific storage accessible as a sort of smart reference class.
Definition: ContextSpecificPtr.h:138
ContextEventCounterData::finalize
StatusCode finalize() override
Algorithm finalization.
Definition: ContextEventCounter.cpp:67