ATLAS Offline Software
Loading...
Searching...
No Matches
DetectorDescription
RegionSelector
src
RegSelTool.cxx
Go to the documentation of this file.
1
12
13
14
#include "
RegSelLUT/RegSelSiLUT.h
"
15
16
#include "
RegSelTool.h
"
17
18
20
RegSelTool::~RegSelTool
() { }
21
22
23
24
StatusCode
RegSelTool::initialize
() {
25
ATH_MSG_DEBUG
(
"Initialising RegSelTool "
<< name() <<
"\ttable: "
<<
m_tableKey
);
26
if
( !
m_initialised
) {
27
ATH_MSG_WARNING
(
"Lookup table will not be initialised "
<< name() <<
"\tkey "
<<
m_tableKey
);
28
}
29
ATH_CHECK
(
m_tableKey
.initialize(
m_initialised
) );
30
return
StatusCode::SUCCESS;
31
}
32
33
34
35
const
IRegSelLUT
*
RegSelTool::lookup
(
const
EventContext& ctx )
const
{
36
if
( !
m_initialised
)
return
nullptr
;
37
SG::ReadCondHandle<IRegSelLUTCondData>
table_handle(
m_tableKey
, ctx );
38
return
(*table_handle)->payload();
39
}
40
41
42
43
44
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition
AthMsgStreamMacros.h:32
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
RegSelSiLUT.h
emacs: this is -*- c++ -*-
RegSelTool.h
IRegSelLUT
Definition
IRegSelLUT.h:26
RegSelTool::initialize
virtual StatusCode initialize() override
@method initialize, loads lookup tables for retrieve Identifier Hash and ROBID
Definition
RegSelTool.cxx:24
RegSelTool::lookup
const IRegSelLUT * lookup(const EventContext &ctx) const override
@method lookup, actually retrieve the lookup table as conditions data
Definition
RegSelTool.cxx:35
RegSelTool::~RegSelTool
virtual ~RegSelTool() override
Destructor.
Definition
RegSelTool.cxx:20
RegSelTool::m_tableKey
SG::ReadCondHandleKey< IRegSelLUTCondData > m_tableKey
Definition
RegSelTool.h:61
RegSelTool::m_initialised
Gaudi::Property< bool > m_initialised
Definition
RegSelTool.h:59
SG::ReadCondHandle
Definition
ReadCondHandle.h:40
Generated on
for ATLAS Offline Software by
1.14.0