| The Gaudi Framework v28r2p1 (f1a77ff4)

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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 "GaudiAlg/GaudiAlgorithm.h"
6
7 #include "GaudiKernel/ContextSpecificPtr.h"
8
15 class ContextEventCounterPtr: public GaudiAlgorithm {
16 public:
18 ContextEventCounterPtr(const std::string& name, ISvcLocator* pSvcLocator);
19 ~ContextEventCounterPtr() override;
20
21 StatusCode initialize() override;
22 StatusCode execute () override;
23 StatusCode finalize () override;
24 protected:
25 private:
26
27 Gaudi::Hive::ContextSpecificPtr<int> m_ctxtSpecCounter;
28 };
29
30 class ContextEventCounterData: public GaudiAlgorithm {
31 public:
33 ContextEventCounterData(const std::string& name, ISvcLocator* pSvcLocator);
34 ~ContextEventCounterData() override;
35
36 StatusCode initialize() override;
37 StatusCode execute () override;
38 StatusCode finalize () override;
39 protected:
40 private:
41
42 Gaudi::Hive::ContextSpecificData<int> m_ctxtSpecCounter;
43 };
44
45 #endif // SRC_CONTEXTEVENTCOUNTER_H
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:715
ContextEventCounterPtr::~ContextEventCounterPtr
~ContextEventCounterPtr() override
Destructor.
Definition: ContextEventCounter.cpp:27
ContextEventCounterPtr::finalize
StatusCode finalize() override
Algorithm finalization.
Definition: ContextEventCounter.cpp:61
ContextEventCounterData::m_ctxtSpecCounter
Gaudi::Hive::ContextSpecificData< int > m_ctxtSpecCounter
Definition: ContextEventCounter.h:42
GaudiAlgorithm.h
Header file for class GaudiAlgorithm.
ContextEventCounterPtr
Definition: ContextEventCounter.h:15
ContextEventCounterPtr::m_ctxtSpecCounter
Gaudi::Hive::ContextSpecificPtr< int > m_ctxtSpecCounter
Definition: ContextEventCounter.h:27
Gaudi::Hive::ContextSpecificPtr
Simple implementation of a smart pointer with different values for different event contexts (slots)...
Definition: ContextSpecificPtr.h:30
std::string
STL class.
ContextEventCounterData
Definition: ContextEventCounter.h:30
ContextEventCounterPtr::initialize
StatusCode initialize() override
Algorithm initialization.
Definition: ContextEventCounter.cpp:32
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
ContextEventCounterPtr::execute
StatusCode execute() override
Algorithm execution.
Definition: ContextEventCounter.cpp:44
ContextSpecificPtr.h
GaudiAlgorithm
The useful base class for data processing algorithms.
Definition: GaudiAlgorithm.h:94
ContextEventCounterPtr::ContextEventCounterPtr
ContextEventCounterPtr(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
Definition: ContextEventCounter.cpp:19
Gaudi::Hive::ContextSpecificData
Implementation of a context specific storage accessible as a sort of smart reference class...
Definition: ContextSpecificPtr.h:144