15#include "GaudiKernel/EventIDRange.h"
28 ATH_MSG_DEBUG(
"MuonRegSelCondAlg::MuonRegSelCondAlg() " << name );
41 return StatusCode::SUCCESS;
61 return StatusCode::SUCCESS;
66 EventIDRange id_range;
68 std::unique_ptr<IRegSelLUT> rd =
createTable( ctx, id_range );
70 if ( !rd )
return StatusCode::FAILURE;
77 if (
const auto *lut =
dynamic_cast<const RegSelSiLUT*
>(rd.get())) {
78 lut->write( name()+
".map" );
91 if( lutCondData.
record( id_range, rcd ).isFailure() ) {
93 <<
" " << lutCondData.
key()
94 <<
" with range " << id_range );
95 return StatusCode::FAILURE;
101 return StatusCode::FAILURE;
107 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
RegSelCondData< IRegSelLUT > IRegSelLUTCondData
emacs: this is -*- c++ -*-
Base class for conditions algorithms.
Gaudi::Property< bool > m_printTable
virtual std::unique_ptr< RegSelSiLUT > createTable(const EventContext &ctx, EventIDRange &id_range) const =0
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode initialize() override
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_detMgrKey
MuonDetectorManager from the conditions store.
MuonRegSelCondAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteCondHandleKey< IRegSelLUTCondData > m_tableKey
Output conditions object.
const std::string & key() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED
const DataObjID & fullKey() const