Public Member Functions | |
virtual void | fillObjectKeys (ReturnType pL1TriggerKey) |
L1MuGMTParametersKeysOnlineProd (const edm::ParameterSet &iConfig) | |
~L1MuGMTParametersKeysOnlineProd () |
Definition at line 22 of file L1MuGMTParametersKeysOnlineProd.cc.
L1MuGMTParametersKeysOnlineProd::L1MuGMTParametersKeysOnlineProd | ( | const edm::ParameterSet & | iConfig | ) | [inline] |
Definition at line 24 of file L1MuGMTParametersKeysOnlineProd.cc.
References LogDebug.
: L1ObjectKeysOnlineProdBase( iConfig ) { LogDebug( "L1-O2O" ) << "L1MuGMTParametersKeysOnlineProd created" << std::endl; }
L1MuGMTParametersKeysOnlineProd::~L1MuGMTParametersKeysOnlineProd | ( | ) | [inline] |
Definition at line 29 of file L1MuGMTParametersKeysOnlineProd.cc.
{}
void L1MuGMTParametersKeysOnlineProd::fillObjectKeys | ( | ReturnType | pL1TriggerKey | ) | [virtual] |
Implements L1ObjectKeysOnlineProdBase.
Definition at line 38 of file L1MuGMTParametersKeysOnlineProd.cc.
References l1t::OMDSReader::basicQuery(), l1t::OMDSReader::QueryResults::fillVariable(), L1TriggerKey::kGMT, L1ObjectKeysOnlineProdBase::m_omdsReader, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), and l1t::OMDSReader::singleAttribute().
{ std::string subsystemKey = pL1TriggerKey->subsystemKey( L1TriggerKey::kGMT ) ; if( !subsystemKey.empty() ) { l1t::OMDSReader::QueryResults lutKeyResults = m_omdsReader.basicQuery( // SELECTed column "LUT_KEY", // schema name "CMS_GMT", // table name "GMT_CONFIG", // WHERE lhs "GMT_CONFIG.KEY", // WHERE rhs m_omdsReader.singleAttribute( subsystemKey ) ); if( lutKeyResults.queryFailed() || lutKeyResults.numberRows() != 1 ) // check if query was successful { edm::LogError( "L1-O2O" ) << "Problem extracting GMT LUT key from GMT config key." ; return ; } l1t::OMDSReader::QueryResults softwareConfigKeyResults = m_omdsReader.basicQuery( // SELECTed column "GMT_SOFTWARE_CONFIG", // schema name "CMS_GMT", // table name "GMT_LUTS", // WHERE lhs "GMT_LUTS.KEY", // WHERE rhs lutKeyResults); if( softwareConfigKeyResults.queryFailed() || softwareConfigKeyResults.numberRows() != 1 ) // check if query was successful { edm::LogError( "L1-O2O" ) << "Problem extracting GMT software config key from GMT config key." ; return ; } std::string objectKey ; softwareConfigKeyResults.fillVariable(objectKey) ; pL1TriggerKey->add( "L1MuGMTParametersRcd", "L1MuGMTParameters", objectKey ) ; } }