| The Gaudi Framework v30r0 (c919700c)

- 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 {
17 public:
19 ContextEventCounterPtr( const std::string& name, ISvcLocator* pSvcLocator );
20 ~ContextEventCounterPtr() override;
21
22 StatusCode initialize() override;
23 StatusCode execute() override;
24 StatusCode finalize() override;
25 protected:
26 private:
27 Gaudi::Hive::ContextSpecificPtr<int> m_ctxtSpecCounter;
28 };
29
30 class ContextEventCounterData : public GaudiAlgorithm
31 {
32 public:
34 ContextEventCounterData( const std::string& name, ISvcLocator* pSvcLocator );
35 ~ContextEventCounterData() override;
36
37 StatusCode initialize() override;
38 StatusCode execute() override;
39 StatusCode finalize() override;
40 protected:
41 private:
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:737
ContextEventCounterPtr::~ContextEventCounterPtr
~ContextEventCounterPtr() override
Destructor.
Definition: ContextEventCounter.cpp:25
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:32
std::string
STL class.
ContextEventCounterData
Definition: ContextEventCounter.h:30
ContextEventCounterPtr::initialize
StatusCode initialize() override
Algorithm initialization.
Definition: ContextEventCounter.cpp:30
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:43
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:17
Gaudi::Hive::ContextSpecificData
Implementation of a context specific storage accessible as a sort of smart reference class...
Definition: ContextSpecificPtr.h:154