Public Member Functions | |
virtual void | fillObjectKeys (ReturnType pL1TriggerKey) |
L1GctRSObjectKeysOnlineProd (const edm::ParameterSet &iConfig) | |
~L1GctRSObjectKeysOnlineProd () | |
Private Attributes | |
bool | m_enableL1GctChannelMask |
Definition at line 4 of file L1GctRSObjectKeysOnlineProd.cc.
L1GctRSObjectKeysOnlineProd::L1GctRSObjectKeysOnlineProd | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 14 of file L1GctRSObjectKeysOnlineProd.cc.
: L1ObjectKeysOnlineProdBase( iConfig ), m_enableL1GctChannelMask( iConfig.getParameter< bool >( "enableL1GctChannelMask" ) ) { }
L1GctRSObjectKeysOnlineProd::~L1GctRSObjectKeysOnlineProd | ( | ) | [inline] |
Definition at line 7 of file L1GctRSObjectKeysOnlineProd.cc.
{}
void L1GctRSObjectKeysOnlineProd::fillObjectKeys | ( | ReturnType | pL1TriggerKey | ) | [virtual] |
Implements L1ObjectKeysOnlineProdBase.
Definition at line 21 of file L1GctRSObjectKeysOnlineProd.cc.
References l1t::OMDSReader::basicQuery(), l1t::OMDSReader::QueryResults::fillVariable(), m_enableL1GctChannelMask, L1ObjectKeysOnlineProdBase::m_omdsReader, l1t::OMDSReader::QueryResults::numberRows(), and l1t::OMDSReader::QueryResults::queryFailed().
{ if( m_enableL1GctChannelMask ) { // Execute SQL queries to get data from OMDS (using key) and make C++ object. // Example: SELECT A_KEY FROM CMS_XXX.XXX_RUN_SETTINGS_KEYS_CURRENT l1t::OMDSReader::QueryResults objectKeyResults = m_omdsReader.basicQuery( "GCT_MASKS_KEY", "CMS_GCT", "GCT_MASKS_CURRENT" ); std::string maskKey ; // check if query was successful if( objectKeyResults.queryFailed() ) { edm::LogError("L1-O2O") << "Problem with key for record L1GctChannelMaskRcd: query failed "; } else if( objectKeyResults.numberRows() != 1 ) { edm::LogError("L1-O2O") << "Problem with key for record L1GctChannelMaskRcd: " << (objectKeyResults.numberRows()) << " rows were returned"; } else { objectKeyResults.fillVariable( maskKey ) ; } pL1TriggerKey->add( "L1GctChannelMaskRcd", "L1GctChannelMask", maskKey ) ; } }
bool L1GctRSObjectKeysOnlineProd::m_enableL1GctChannelMask [private] |
Definition at line 11 of file L1GctRSObjectKeysOnlineProd.cc.
Referenced by fillObjectKeys().