ATLAS Offline Software
Loading...
Searching...
No Matches
RegSelTool Class Reference

emacs: this is -*- c++ -*- More...

#include <RegSelTool.h>

Inheritance diagram for RegSelTool:
Collaboration diagram for RegSelTool:

Public Member Functions

virtual ~RegSelTool () override
 Destructor.
virtual StatusCode initialize () override
 @method initialize, loads lookup tables for retrieve Identifier Hash and ROBID

Protected Member Functions

const IRegSelLUTlookup (const EventContext &ctx) const override
 @method lookup, actually retrieve the lookup table as conditions data

Private Attributes

Gaudi::Property< bool > m_dumpTable { this, "WriteTable", false, "write out maps to files for debugging" }
 Declare properties.
Gaudi::Property< bool > m_initialised { this, "Initialised", false, "flag to determine whether the corresponding subsystem is initilised" }
SG::ReadCondHandleKey< IRegSelLUTCondDatam_tableKey { this, "RegSelLUT", "Tool_Not_Initalised", "Region Selector lookup table" }

Detailed Description

emacs: this is -*- c++ -*-

   This is the Region Selector tool for the ID And muon spectrometer 
   tables
Author
Mark Sutton

Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration

Definition at line 38 of file RegSelTool.h.

Constructor & Destructor Documentation

◆ ~RegSelTool()

RegSelTool::~RegSelTool ( )
overridevirtual

Destructor.

Standard destructor.

Definition at line 20 of file RegSelTool.cxx.

20{ }

Member Function Documentation

◆ initialize()

StatusCode RegSelTool::initialize ( )
overridevirtual

@method initialize, loads lookup tables for retrieve Identifier Hash and ROBID

Definition at line 24 of file RegSelTool.cxx.

24 {
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}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
SG::ReadCondHandleKey< IRegSelLUTCondData > m_tableKey
Definition RegSelTool.h:61
Gaudi::Property< bool > m_initialised
Definition RegSelTool.h:59

◆ lookup()

const IRegSelLUT * RegSelTool::lookup ( const EventContext & ctx) const
overrideprotected

@method lookup, actually retrieve the lookup table as conditions data

Definition at line 35 of file RegSelTool.cxx.

35 {
36 if ( !m_initialised ) return nullptr;
37 SG::ReadCondHandle<IRegSelLUTCondData> table_handle( m_tableKey, ctx );
38 return (*table_handle)->payload();
39}

Member Data Documentation

◆ m_dumpTable

Gaudi::Property<bool> RegSelTool::m_dumpTable { this, "WriteTable", false, "write out maps to files for debugging" }
private

Declare properties.

Definition at line 58 of file RegSelTool.h.

58{ this, "WriteTable", false, "write out maps to files for debugging" };

◆ m_initialised

Gaudi::Property<bool> RegSelTool::m_initialised { this, "Initialised", false, "flag to determine whether the corresponding subsystem is initilised" }
private

Definition at line 59 of file RegSelTool.h.

59{ this, "Initialised", false, "flag to determine whether the corresponding subsystem is initilised" };

◆ m_tableKey

SG::ReadCondHandleKey<IRegSelLUTCondData> RegSelTool::m_tableKey { this, "RegSelLUT", "Tool_Not_Initalised", "Region Selector lookup table" }
private

Definition at line 61 of file RegSelTool.h.

61{ this, "RegSelLUT", "Tool_Not_Initalised", "Region Selector lookup table" };

The documentation for this class was generated from the following files: