ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExHive
src
HiveAlgB.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 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
"
17
#include "
StoreGate/WriteHandleKey.h
"
18
#include "
AthExHive/HiveDataObj.h
"
19
#include "GaudiKernel/ContextSpecificPtr.h"
20
21
#include <string>
22
23
class
HiveAlgB
:
public
HiveAlgBase
{
24
25
public
:
26
27
// Standard Algorithm Constructor:
28
29
HiveAlgB
(
const
std::string& name, ISvcLocator* pSvcLocator);
30
~HiveAlgB
();
31
32
// Define the initialize, execute and finalize methods:
33
34
virtual
StatusCode
initialize
()
override
;
35
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
36
virtual
StatusCode
finalize
()
override
;
37
38
private
:
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
mutable
Gaudi::Hive::ContextSpecificData<int> m_di
ATLAS_THREAD_SAFE
;
48
49
};
50
#endif
HiveAlgBase.h
Base class for AthExHive example Algs to provide functionality to sleep for a certain amount of time,...
HiveDataObj.h
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
HiveAlgB::m_wrh1
SG::WriteHandleKey< HiveDataObj > m_wrh1
Definition
HiveAlgB.h:42
HiveAlgB::HiveAlgB
HiveAlgB(const std::string &name, ISvcLocator *pSvcLocator)
Definition
HiveAlgB.cxx:10
HiveAlgB::ATLAS_THREAD_SAFE
Gaudi::Hive::ContextSpecificData< int > m_di ATLAS_THREAD_SAFE
Definition
HiveAlgB.h:47
HiveAlgB::~HiveAlgB
~HiveAlgB()
HiveAlgB::initialize
virtual StatusCode initialize() override
Definition
HiveAlgB.cxx:19
HiveAlgB::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
HiveAlgB.cxx:48
HiveAlgB::finalize
virtual StatusCode finalize() override
Definition
HiveAlgB.cxx:37
HiveAlgB::dump
void dump()
Definition
HiveAlgB.cxx:71
HiveAlgBase::HiveAlgBase
HiveAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
Definition
HiveAlgBase.cxx:12
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
Generated on
for ATLAS Offline Software by
1.17.0