ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthenaExamples
AthExHive
src
condEx
AlgT.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef ATHEXHIVE_CONDEX_ALGT_H
6
#define ATHEXHIVE_CONDEX_ALGT_H
7
8
#include "
AthenaBaseComps/AthAlgorithm.h
"
9
#include "
StoreGate/WriteHandleKey.h
"
10
#include "
StoreGate/ReadHandleKey.h
"
11
#include "
AthExHive/HiveDataObj.h
"
12
#include "
AthExHive/IHiveTool.h
"
13
14
#include "
xAODEventInfo/EventInfo.h
"
15
16
#include "GaudiKernel/ToolHandle.h"
17
18
class
AlgT
:
public
AthAlgorithm
{
19
20
public
:
21
22
AlgT
(
const
std::string& name, ISvcLocator* pSvcLocator);
23
virtual
~AlgT
() =
default
;
24
25
virtual
bool
isClonable
()
const override
{
return
true
; }
26
27
virtual
StatusCode
initialize
()
override
;
28
virtual
StatusCode
execute
(
const
EventContext& ctx)
override
;
29
30
private
:
31
32
SG::ReadHandleKey<xAOD::EventInfo>
m_evt
{
this
,
"EvtInfo"
,
"EventInfo"
,
"EventInfo name"
};
33
SG::ReadHandleKey<HiveDataObj>
m_rdh1
{
this
,
"Key_R1"
,
""
,
"read key"
};
34
SG::WriteHandleKey<HiveDataObj>
m_wrh1
{
this
,
"Key_W1"
,
"t1"
,
"write key"
};
35
36
37
ToolHandle<IHiveTool>
m_tool1
{
this
,
"Tool1"
,
"HiveTool"
,
"tool 1"
};
38
ToolHandle<IHiveTool>
m_tool2
{
this
,
"Tool2"
,
"HiveTool"
,
"tool 2"
};
39
ToolHandle<IHiveTool>
m_tool3
{
this
,
"Tool3"
,
"HiveTool"
,
"tool 3"
};
40
41
};
42
#endif
AthAlgorithm.h
HiveDataObj.h
IHiveTool.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.
AlgT::initialize
virtual StatusCode initialize() override
Definition
AlgT.cxx:16
AlgT::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
AlgT.cxx:32
AlgT::m_tool1
ToolHandle< IHiveTool > m_tool1
Definition
AlgT.h:37
AlgT::m_tool2
ToolHandle< IHiveTool > m_tool2
Definition
AlgT.h:38
AlgT::m_wrh1
SG::WriteHandleKey< HiveDataObj > m_wrh1
Definition
AlgT.h:34
AlgT::isClonable
virtual bool isClonable() const override
Specify if the algorithm is clonable.
Definition
AlgT.h:25
AlgT::AlgT
AlgT(const std::string &name, ISvcLocator *pSvcLocator)
Definition
AlgT.cxx:9
AlgT::~AlgT
virtual ~AlgT()=default
AlgT::m_tool3
ToolHandle< IHiveTool > m_tool3
Definition
AlgT.h:39
AlgT::m_evt
SG::ReadHandleKey< xAOD::EventInfo > m_evt
Definition
AlgT.h:32
AlgT::m_rdh1
SG::ReadHandleKey< HiveDataObj > m_rdh1
Definition
AlgT.h:33
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
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