CMS 3D CMS Logo

Public Member Functions

DTTFTSCObjectKeysOnlineProd Class Reference

Inheritance diagram for DTTFTSCObjectKeysOnlineProd:
L1ObjectKeysOnlineProdBase edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Member Functions

 DTTFTSCObjectKeysOnlineProd (const edm::ParameterSet &)
virtual void fillObjectKeys (ReturnType pL1TriggerKey)
 ~DTTFTSCObjectKeysOnlineProd ()

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 32 of file DTTFTSCObjectKeysOnlineProd.cc.


Constructor & Destructor Documentation

DTTFTSCObjectKeysOnlineProd::DTTFTSCObjectKeysOnlineProd ( const edm::ParameterSet iConfig)

Definition at line 53 of file DTTFTSCObjectKeysOnlineProd.cc.

  : L1ObjectKeysOnlineProdBase( iConfig )
{}
DTTFTSCObjectKeysOnlineProd::~DTTFTSCObjectKeysOnlineProd ( )

Definition at line 58 of file DTTFTSCObjectKeysOnlineProd.cc.

{
 
   // do anything here that needs to be done at desctruction time
   // (e.g. close files, deallocate resources etc.)

}

Member Function Documentation

void DTTFTSCObjectKeysOnlineProd::fillObjectKeys ( ReturnType  pL1TriggerKey) [virtual]

Implements L1ObjectKeysOnlineProdBase.

Definition at line 73 of file DTTFTSCObjectKeysOnlineProd.cc.

References l1t::OMDSReader::basicQuery(), l1t::OMDSReader::QueryResults::fillVariable(), L1TriggerKey::kDTTF, L1ObjectKeysOnlineProdBase::m_omdsReader, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), and l1t::OMDSReader::singleAttribute().

{
  std::string dttfKey = pL1TriggerKey->subsystemKey( L1TriggerKey::kDTTF ) ;

  if( !dttfKey.empty() )
    {
      // SELECT LUT_KEY FROM CMS_DT_TF.DTTF_CONF WHERE DTTF_CONF.ID = dttfKey
      l1t::OMDSReader::QueryResults lutKeyResults =
        m_omdsReader.basicQuery( "LUT_KEY",
                                 "CMS_DT_TF",
                                 "DTTF_CONF",
                                 "DTTF_CONF.ID",
                                 m_omdsReader.singleAttribute( dttfKey  ) );


      if( lutKeyResults.queryFailed() ||
          lutKeyResults.numberRows() != 1 ) // check query successful
        {
          edm::LogError( "L1-O2O" ) << "Problem with DTTF key." ;
          return ;
        }

      std::string lutKey ;
      lutKeyResults.fillVariable( lutKey ) ;

      pL1TriggerKey->add( "L1MuDTEtaPatternLutRcd",
                          "L1MuDTEtaPatternLut",
                          lutKey ) ;

      pL1TriggerKey->add( "L1MuDTExtLutRcd",
                          "L1MuDTExtLut",
                          lutKey ) ;

      pL1TriggerKey->add( "L1MuDTPhiLutRcd",
                          "L1MuDTPhiLut",
                          lutKey ) ;

      pL1TriggerKey->add( "L1MuDTPtaLutRcd",
                          "L1MuDTPtaLut",
                          lutKey ) ;

      pL1TriggerKey->add( "L1MuDTQualPatternLutRcd",
                          "L1MuDTQualPatternLut",
                          lutKey ) ;

      pL1TriggerKey->add( "L1MuDTTFParametersRcd",
                          "L1MuDTTFParameters",
                          dttfKey ) ;
    }
}