ATLAS Offline Software
DetectorDescription
RegionSelector
src
RegSelTool.cxx
Go to the documentation of this file.
1
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
SG::ReadCondHandle
Definition:
ReadCondHandle.h:44
RegSelTool::m_tableKey
SG::ReadCondHandleKey< IRegSelLUTCondData > m_tableKey
Definition:
RegSelTool.h:61
RegSelTool::initialize
virtual StatusCode initialize() override
@method initialize, loads lookup tables for retrieve Identifier Hash and ROBID
Definition:
RegSelTool.cxx:24
RegSelSiLUT.h
emacs: this is -*- c++ -*-
RegSelTool.h
RegSelTool::~RegSelTool
virtual ~RegSelTool() override
Destructor.
Definition:
RegSelTool.cxx:20
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition:
AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition:
AthCheckMacros.h:40
IRegSelLUT
Definition:
IRegSelLUT.h:26
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:240
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition:
AthMsgStreamMacros.h:32
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::m_initialised
Gaudi::Property< bool > m_initialised
Definition:
RegSelTool.h:59
Generated on Mon Sep 1 2025 21:17:56 for ATLAS Offline Software by
1.8.18