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

 RegSelTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor for tool (obviously). More...
 
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

bool m_initialised
 Flag to determine whether it has yet been initialised. More...
 
BooleanProperty m_dumpTable
 Flag to dump loaded table in data file. More...
 
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-2020 CERN for the benefit of the ATLAS collaboration

Definition at line 38 of file RegSelTool.h.

Constructor & Destructor Documentation

◆ RegSelTool()

RegSelTool::RegSelTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Standard constructor for tool (obviously).

Constructor.

Declare properties

Definition at line 21 of file RegSelTool.cxx.

22  : base_class( type, name, parent ),
23  m_initialised(false),
24  m_dumpTable(false)
25 {
27  declareProperty( "WriteTable", m_dumpTable, "write out maps to files for debugging" );
28  declareProperty( "Initialised", m_initialised=false, "flag to determine whether the corresponding subsystem is initilised" );
29 }

◆ ~RegSelTool()

RegSelTool::~RegSelTool ( )
overridevirtual

Destructor.

Standard destructor.

Definition at line 33 of file RegSelTool.cxx.

33 { }

Member Function Documentation

◆ initialize()

StatusCode RegSelTool::initialize ( )
overridevirtual

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

Definition at line 37 of file RegSelTool.cxx.

37  {
38  ATH_MSG_DEBUG( "Initialising RegSelTool " << name() << "\ttable: " << m_tableKey );
39  if ( !m_initialised ) {
40  ATH_MSG_WARNING( "Lookup table will not be initialised " << name() << "\tkey " << m_tableKey );
41  }
42  ATH_CHECK( m_tableKey.initialize(m_initialised) );
43  return StatusCode::SUCCESS;
44 }

◆ lookup()

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

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

Definition at line 48 of file RegSelTool.cxx.

48  {
49  if ( !m_initialised ) return nullptr;
51  return (*table_handle)->payload();
52 }

Member Data Documentation

◆ m_dumpTable

BooleanProperty RegSelTool::m_dumpTable
private

Flag to dump loaded table in data file.

Definition at line 65 of file RegSelTool.h.

◆ m_initialised

bool RegSelTool::m_initialised
private

Flag to determine whether it has yet been initialised.

Definition at line 62 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 67 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:67
RegSelTool::m_initialised
bool m_initialised
Flag to determine whether it has yet been initialised.
Definition: RegSelTool.h:62
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
RegSelTool::m_dumpTable
BooleanProperty m_dumpTable
Flag to dump loaded table in data file.
Definition: RegSelTool.h:65
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78