#include <CSCTFObjectKeysOnlineProd.h>
Public Member Functions | |
CSCTFObjectKeysOnlineProd (const edm::ParameterSet &iConfig) | |
virtual void | fillObjectKeys (ReturnType pL1TriggerKey) |
~CSCTFObjectKeysOnlineProd () | |
Private Attributes | |
bool | m_enableConfiguration |
bool | m_enablePtLut |
Definition at line 4 of file CSCTFObjectKeysOnlineProd.h.
CSCTFObjectKeysOnlineProd::CSCTFObjectKeysOnlineProd | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 4 of file CSCTFObjectKeysOnlineProd.cc.
: L1ObjectKeysOnlineProdBase( iConfig ), m_enableConfiguration( iConfig.getParameter< bool >( "enableConfiguration" ) ), m_enablePtLut( iConfig.getParameter< bool >( "enablePtLut" ) ) {}
CSCTFObjectKeysOnlineProd::~CSCTFObjectKeysOnlineProd | ( | ) | [inline] |
Definition at line 7 of file CSCTFObjectKeysOnlineProd.h.
{}
void CSCTFObjectKeysOnlineProd::fillObjectKeys | ( | ReturnType | pL1TriggerKey | ) | [virtual] |
Implements L1ObjectKeysOnlineProdBase.
Definition at line 10 of file CSCTFObjectKeysOnlineProd.cc.
References l1t::OMDSReader::basicQuery(), l1t::OMDSReader::QueryResults::fillVariable(), L1TriggerKey::kCSCTF, m_enableConfiguration, m_enablePtLut, L1ObjectKeysOnlineProdBase::m_omdsReader, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), and l1t::OMDSReader::singleAttribute().
{ std::string csctfKey = pL1TriggerKey->subsystemKey( L1TriggerKey::kCSCTF ) ; if( !csctfKey.empty() ) { if( m_enableConfiguration ) { //---------------------------------------------------------------------------- // register the main CSCTF key pL1TriggerKey->add( "L1MuCSCTFConfigurationRcd", "L1MuCSCTFConfiguration", csctfKey ) ; //---------------------------------------------------------------------------- } if( m_enablePtLut ) { //---------------------------------------------------------------------------- // PT LUT // // while the sp configuration can change from sector to sector, the pt LUT file //loaded in the CSCTF boards is the same for each SP => the same PTLUT_VERSION // RETRIEVE THE VERSION FROM THE SP1 CONFIGURATION // // e.g., SELECT PTLUT_VERSION FROM CMS_CSC_TF.CSCTF_SP_CONF WHERE CSCTF_SP_CONF.SP_KEY = '1702100001' // e.g., CSCTF key of the type day/month/year, e.g. 170210 = 17th February 2010 std::string sp1key = csctfKey + "0001"; // query l1t::OMDSReader::QueryResults objectKeyResults = m_omdsReader.basicQuery( "PTLUT_VERSION", "CMS_CSC_TF", "CSCTF_SP_CONF", "CSCTF_SP_CONF.SP_KEY", m_omdsReader.singleAttribute( sp1key ) ); // check if query was successful if( objectKeyResults.queryFailed() || objectKeyResults.numberRows() != 1 ) { edm::LogError( "L1-O2O" ) << "Problem with CSCTF key while retrieving " << "the PTLUT_VERSION" ; return ; } // register the pt LUT key std::string ptLutKey; objectKeyResults.fillVariable( ptLutKey ) ; pL1TriggerKey->add( "L1MuCSCPtLutRcd", "L1MuCSCPtLut", ptLutKey ) ; //---------------------------------------------------------------------------- } } }
bool CSCTFObjectKeysOnlineProd::m_enableConfiguration [private] |
Definition at line 11 of file CSCTFObjectKeysOnlineProd.h.
Referenced by fillObjectKeys().
bool CSCTFObjectKeysOnlineProd::m_enablePtLut [private] |
Definition at line 12 of file CSCTFObjectKeysOnlineProd.h.
Referenced by fillObjectKeys().