| The Gaudi Framework v27r1

- 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 virtual ~ContextEventCounterPtr();
20
21 virtual StatusCode initialize();
22 virtual StatusCode execute ();
23 virtual StatusCode finalize ();
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 virtual ~ContextEventCounterData();
35
36 virtual StatusCode initialize();
37 virtual StatusCode execute ();
38 virtual StatusCode finalize ();
39 protected:
40 private:
41
42 Gaudi::Hive::ContextSpecificData<int> m_ctxtSpecCounter;
43 };
44
45 #endif // SRC_CONTEXTEVENTCOUNTER_H
ContextEventCounterData::ContextEventCounterData
ContextEventCounterData(const std::string &name, ISvcLocator *pSvcLocator)
Standard constructor.
Definition: ContextEventCounter.cpp:83
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
ContextEventCounterData::m_ctxtSpecCounter
Gaudi::Hive::ContextSpecificData< int > m_ctxtSpecCounter
Definition: ContextEventCounter.h:42
GaudiAlgorithm.h
ContextEventCounterData::~ContextEventCounterData
virtual ~ContextEventCounterData()
Destructor.
Definition: ContextEventCounter.cpp:91
ContextEventCounterPtr::~ContextEventCounterPtr
virtual ~ContextEventCounterPtr()
Destructor.
Definition: ContextEventCounter.cpp:27
ContextEventCounterPtr
Definition: ContextEventCounter.h:15
ContextEventCounterData::finalize
virtual StatusCode finalize()
Algorithm finalization.
Definition: ContextEventCounter.cpp:121
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
Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:820
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
ContextSpecificPtr.h
GaudiAlgorithm
The useful base class for data processing algorithms.
Definition: GaudiAlgorithm.h:93
ContextEventCounterData::initialize
virtual StatusCode initialize()
Algorithm initialization.
Definition: ContextEventCounter.cpp:96
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
ContextEventCounterPtr::initialize
virtual StatusCode initialize()
Algorithm initialization.
Definition: ContextEventCounter.cpp:32
ContextEventCounterPtr::finalize
virtual StatusCode finalize()
Algorithm finalization.
Definition: ContextEventCounter.cpp:61
ContextEventCounterPtr::execute
virtual StatusCode execute()
Algorithm execution.
Definition: ContextEventCounter.cpp:44
ContextEventCounterData::execute
virtual StatusCode execute()
Algorithm execution.
Definition: ContextEventCounter.cpp:108