ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExHive
src
HiveAlgR.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
12
#ifndef ATHEXHIVE_HIVEALGR_H
13
#define ATHEXHIVE_HIVEALGR_H 1
14
15
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
16
17
#include "
StoreGate/WriteHandleKey.h
"
18
#include "
StoreGate/ReadHandleKey.h
"
19
#include "
AthExHive/HiveDataObj.h
"
20
#include "
xAODEventInfo/EventInfo.h
"
21
22
// to make an Algorithm Re-entrant, you must inherit from AthReentrantAlgorithm
23
class
HiveAlgR
:
public
AthReentrantAlgorithm
{
24
25
public
:
26
27
// Standard Algorithm Constructor:
28
29
HiveAlgR
(
const
std::string& name, ISvcLocator* pSvcLocator);
30
~HiveAlgR
();
31
32
// Define the initialize, execute and finalize methods:
33
virtual
StatusCode
initialize
()
override
;
34
virtual
StatusCode
finalize
()
override
;
35
36
// Re-entrant version of execute is const and takes an EventContext param
37
virtual
StatusCode
execute
(
const
EventContext&)
const override
;
38
39
private
:
40
41
SG::ReadHandleKey<xAOD::EventInfo>
m_evt
{
this
,
"EvtInfo"
,
"EventInfo"
,
"event info key"
};
42
43
SG::WriteHandleKey<HiveDataObj>
m_wrh1
{
this
,
"Key_W1"
,
"ar1"
,
"write handle key"
};
44
45
};
46
#endif
AthReentrantAlgorithm.h
HiveDataObj.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
HiveAlgR::~HiveAlgR
~HiveAlgR()
HiveAlgR::m_evt
SG::ReadHandleKey< xAOD::EventInfo > m_evt
Definition
HiveAlgR.h:41
HiveAlgR::finalize
virtual StatusCode finalize() override
Definition
HiveAlgR.cxx:28
HiveAlgR::HiveAlgR
HiveAlgR(const std::string &name, ISvcLocator *pSvcLocator)
Definition
HiveAlgR.cxx:8
HiveAlgR::execute
virtual StatusCode execute(const EventContext &) const override
Definition
HiveAlgR.cxx:34
HiveAlgR::m_wrh1
SG::WriteHandleKey< HiveDataObj > m_wrh1
Definition
HiveAlgR.h:43
HiveAlgR::initialize
virtual StatusCode initialize() override
Definition
HiveAlgR.cxx:17
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition
StoreGate/StoreGate/WriteHandleKey.h:40
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0