ATLAS Offline Software
Loading...
Searching...
No Matches
HiveAlgB.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
11
12
13#ifndef ATHEXHIVE_ALGB_H
14#define ATHEXHIVE_ALGB_H 1
15
16#include "HiveAlgBase.h"
19#include "GaudiKernel/ContextSpecificPtr.h"
20
21#include <string>
22
23class HiveAlgB : public HiveAlgBase {
24
25public:
26
27 // Standard Algorithm Constructor:
28
29 HiveAlgB (const std::string& name, ISvcLocator* pSvcLocator);
31
32 // Define the initialize, execute and finalize methods:
33
34 virtual StatusCode initialize() override;
35 virtual StatusCode execute() override;
36 virtual StatusCode finalize() override;
37
38private:
39
40 void dump();
41
42 SG::WriteHandleKey<HiveDataObj> m_wrh1 {this, "Key_W1", "b1", "WHK 1"};
43
44 // context specific data: which hides an array structure behind a simple
45 // interface, keeping separate versions of the data for each concurrent
46 // event (slot)
47 Gaudi::Hive::ContextSpecificData<int> m_di;
48
49};
50#endif
Base class for AthExHive example Algs to provide functionality to sleep for a certain amount of time,...
Property holding a SG store/key/clid from which a WriteHandle is made.
SG::WriteHandleKey< HiveDataObj > m_wrh1
Definition HiveAlgB.h:42
HiveAlgB(const std::string &name, ISvcLocator *pSvcLocator)
Definition HiveAlgB.cxx:10
Gaudi::Hive::ContextSpecificData< int > m_di
Definition HiveAlgB.h:47
virtual StatusCode execute() override
Definition HiveAlgB.cxx:52
virtual StatusCode initialize() override
Definition HiveAlgB.cxx:19
virtual StatusCode finalize() override
Definition HiveAlgB.cxx:40
void dump()
Definition HiveAlgB.cxx:76
HiveAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
Property holding a SG store/key/clid from which a WriteHandle is made.