ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
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. More...
 
virtual StatusCode initialize () override
 @method initialize, loads lookup tables for retrieve Identifier Hash and ROBID More...
 

Protected Member Functions

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

Private Attributes

Gaudi::Property< bool > m_dumpTable { this, "WriteTable", false, "write out maps to files for debugging" }
 Declare properties. More...
 
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 }

◆ 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;
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.

◆ 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.

◆ 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.


The documentation for this class was generated from the following files:
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
RegSelTool::m_tableKey
SG::ReadCondHandleKey< IRegSelLUTCondData > m_tableKey
Definition: RegSelTool.h:61
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
RegSelTool::m_initialised
Gaudi::Property< bool > m_initialised
Definition: RegSelTool.h:59