ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExHive
src
HiveAlgV.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
10
11
#ifndef ATHEXHIVE_ALGF_V
12
#define ATHEXHIVE_ALGF_V 1
13
14
#include "
HiveAlgBase.h
"
15
#include "
StoreGate/ReadHandleKeyArray.h
"
16
#include "
StoreGate/WriteHandleKeyArray.h
"
17
#include "
AthExHive/HiveDataObj.h
"
18
19
#include <string>
20
21
class
HiveAlgV
:
public
HiveAlgBase
{
22
23
public
:
24
25
// Standard Algorithm Constructor:
26
27
HiveAlgV
(
const
std::string& name, ISvcLocator* pSvcLocator);
28
~HiveAlgV
();
29
30
// Define the initialize and execute methods:
31
32
virtual
StatusCode
initialize
()
override
;
33
virtual
StatusCode
execute
(
const
EventContext& ctx)
const override
;
34
35
private
:
36
37
Gaudi::Property<bool>
m_writeFirst
{
this
,
"WriteBeforeRead"
,
true
,
38
"do write before the read"
};
39
40
SG::ReadHandleKeyArray<HiveDataObj>
m_rhv
{
41
this
,
"Key_RV"
, {
"a1"
,
"a2"
,
"d1"
,
"e1"
,
"c1"
},
42
"Array of ReadHandleKey<HiveDataObj>"
};
43
44
SG::WriteHandleKeyArray<HiveDataObj>
m_whv
{
45
this
,
"Key_WV"
, {},
"Array of WriteHandleKey<HiveDataObj>"
};
46
47
// do the actual reading of the ReadHandleArray
48
StatusCode
read
(
const
EventContext& ctx)
const
;
49
50
// do the actual writing of the ReadHandleArray
51
StatusCode
write
(
const
EventContext& ctx)
const
;
52
53
};
54
#endif
HiveAlgBase.h
Base class for AthExHive example Algs to provide functionality to sleep for a certain amount of time,...
HiveDataObj.h
ReadHandleKeyArray.h
WriteHandleKeyArray.h
HiveAlgBase::HiveAlgBase
HiveAlgBase(const std::string &name, ISvcLocator *pSvcLocator)
Definition
HiveAlgBase.cxx:12
HiveAlgV::~HiveAlgV
~HiveAlgV()
HiveAlgV::m_rhv
SG::ReadHandleKeyArray< HiveDataObj > m_rhv
Definition
HiveAlgV.h:40
HiveAlgV::m_whv
SG::WriteHandleKeyArray< HiveDataObj > m_whv
Definition
HiveAlgV.h:44
HiveAlgV::initialize
virtual StatusCode initialize() override
Definition
HiveAlgV.cxx:17
HiveAlgV::HiveAlgV
HiveAlgV(const std::string &name, ISvcLocator *pSvcLocator)
Definition
HiveAlgV.cxx:8
HiveAlgV::m_writeFirst
Gaudi::Property< bool > m_writeFirst
Definition
HiveAlgV.h:37
HiveAlgV::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
HiveAlgV.cxx:31
HiveAlgV::write
StatusCode write(const EventContext &ctx) const
Definition
HiveAlgV.cxx:66
HiveAlgV::read
StatusCode read(const EventContext &ctx) const
Definition
HiveAlgV.cxx:50
SG::ReadHandleKeyArray
HandleKeyArray< ReadHandle< T >, ReadHandleKey< T >, Gaudi::DataHandle::Reader > ReadHandleKeyArray
Definition
StoreGate/StoreGate/ReadHandleKeyArray.h:32
SG::WriteHandleKeyArray
HandleKeyArray< WriteHandle< T >, WriteHandleKey< T >, Gaudi::DataHandle::Writer > WriteHandleKeyArray
Definition
WriteHandleKeyArray.h:32
Generated on
for ATLAS Offline Software by
1.17.0