ATLAS Offline Software
Control
AthenaExamples
AthExHive
src
HiveAlgV.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
#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
()
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
;
49
50
// do the actual writing of the ReadHandleArray
51
StatusCode
write
();
52
53
};
54
#endif
ReadHandleKeyArray.h
HiveAlgV::write
StatusCode write()
Definition:
HiveAlgV.cxx:66
HiveDataObj.h
SG::HandleKeyArray
Definition:
StoreGate/StoreGate/HandleKeyArray.h:38
HiveAlgV::initialize
virtual StatusCode initialize() override
Definition:
HiveAlgV.cxx:17
HiveAlgV::m_whv
SG::WriteHandleKeyArray< HiveDataObj > m_whv
Definition:
HiveAlgV.h:44
HiveAlgV::execute
virtual StatusCode execute() override
Definition:
HiveAlgV.cxx:31
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HiveAlgV::~HiveAlgV
~HiveAlgV()
HiveAlgBase
Definition:
HiveAlgBase.h:26
WriteHandleKeyArray.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
HiveAlgV::m_writeFirst
Gaudi::Property< bool > m_writeFirst
Definition:
HiveAlgV.h:37
HiveAlgV
Definition:
HiveAlgV.h:21
HiveAlgV::m_rhv
SG::ReadHandleKeyArray< HiveDataObj > m_rhv
Definition:
HiveAlgV.h:40
HiveAlgV::read
StatusCode read() const
Definition:
HiveAlgV.cxx:50
HiveAlgBase.h
Base class for AthExHive example Algs to provide functionality to sleep for a certain amount of time,...
HiveAlgV::HiveAlgV
HiveAlgV(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
HiveAlgV.cxx:8
Generated on Mon Mar 10 2025 21:11:33 for ATLAS Offline Software by
1.8.18