ATLAS Offline Software
Control
AthenaExamples
AthExHive
src
HiveAlgV.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 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, execute and finalize methods:
31
32
virtual
StatusCode
initialize
()
override
;
33
virtual
StatusCode
execute
()
override
;
34
virtual
StatusCode
finalize
()
override
;
35
36
private
:
37
38
Gaudi::Property<bool>
m_writeFirst
{
this
,
"WriteBeforeRead"
,
true
,
39
"do write before the read"
};
40
41
SG::ReadHandleKeyArray<HiveDataObj>
m_rhv
{
42
this
,
"Key_RV"
, {
"a1"
,
"a2"
,
"d1"
,
"e1"
,
"c1"
},
43
"Array of ReadHandleKey<HiveDataObj>"
};
44
45
SG::WriteHandleKeyArray<HiveDataObj>
m_whv
{
46
this
,
"Key_WV"
, {},
"Array of WriteHandleKey<HiveDataObj>"
};
47
48
// do the actual reading of the ReadHandleArray
49
StatusCode
read
()
const
;
50
51
// do the actual writing of the ReadHandleArray
52
StatusCode
write
();
53
54
};
55
#endif
ReadHandleKeyArray.h
HiveAlgV::finalize
virtual StatusCode finalize() override
Definition:
HiveAlgV.cxx:31
HiveAlgV::write
StatusCode write()
Definition:
HiveAlgV.cxx:72
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:45
HiveAlgV::execute
virtual StatusCode execute() override
Definition:
HiveAlgV.cxx:37
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HiveAlgV::~HiveAlgV
~HiveAlgV()
Definition:
HiveAlgV.cxx:14
HiveAlgBase
Definition:
HiveAlgBase.h:26
WriteHandleKeyArray.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:195
HiveAlgV::m_writeFirst
Gaudi::Property< bool > m_writeFirst
Definition:
HiveAlgV.h:38
HiveAlgV
Definition:
HiveAlgV.h:21
HiveAlgV::m_rhv
SG::ReadHandleKeyArray< HiveDataObj > m_rhv
Definition:
HiveAlgV.h:41
HiveAlgV::read
StatusCode read() const
Definition:
HiveAlgV.cxx:56
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 Tue Jul 2 2024 21:16:49 for ATLAS Offline Software by
1.8.18