ATLAS Offline Software
Loading...
Searching...
No Matches
RegSelTool.cxx
Go to the documentation of this file.
1
12
13
15
16#include "RegSelTool.h"
17
18
21
22
23
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
35const IRegSelLUT* RegSelTool::lookup( const EventContext& ctx ) const {
36 if ( !m_initialised ) return nullptr;
38 return (*table_handle)->payload();
39}
40
41
42
43
44
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
emacs: this is -*- c++ -*-
virtual StatusCode initialize() override
@method initialize, loads lookup tables for retrieve Identifier Hash and ROBID
const IRegSelLUT * lookup(const EventContext &ctx) const override
@method lookup, actually retrieve the lookup table as conditions data
virtual ~RegSelTool() override
Destructor.
SG::ReadCondHandleKey< IRegSelLUTCondData > m_tableKey
Definition RegSelTool.h:61
Gaudi::Property< bool > m_initialised
Definition RegSelTool.h:59