CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CSCTFObjectKeysOnlineProd Class Reference

#include <CSCTFObjectKeysOnlineProd.h>

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

Public Member Functions

 CSCTFObjectKeysOnlineProd (const edm::ParameterSet &iConfig)
 
void fillObjectKeys (FillType) override
 
 ~CSCTFObjectKeysOnlineProd () override
 
- Public Member Functions inherited from L1ObjectKeysOnlineProdBase
 L1ObjectKeysOnlineProdBase (const edm::ParameterSet &)
 
ReturnType produce (const L1TriggerKeyRcd &)
 
 ~L1ObjectKeysOnlineProdBase () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESProxyIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Private Attributes

bool m_enableConfiguration
 
bool m_enablePtLut
 

Additional Inherited Members

- Public Types inherited from L1ObjectKeysOnlineProdBase
typedef std::unique_ptr< L1TriggerKey >::pointer FillType
 
typedef std::unique_ptr< L1TriggerKeyReturnType
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >>
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
void usesResources (std::vector< std::string > const &)
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 
- Protected Attributes inherited from L1ObjectKeysOnlineProdBase
l1t::OMDSReader m_omdsReader
 

Detailed Description

Definition at line 3 of file CSCTFObjectKeysOnlineProd.h.

Constructor & Destructor Documentation

◆ CSCTFObjectKeysOnlineProd()

CSCTFObjectKeysOnlineProd::CSCTFObjectKeysOnlineProd ( const edm::ParameterSet iConfig)

Definition at line 4 of file CSCTFObjectKeysOnlineProd.cc.

6  m_enableConfiguration(iConfig.getParameter<bool>("enableConfiguration")),
7  m_enablePtLut(iConfig.getParameter<bool>("enablePtLut")) {}

◆ ~CSCTFObjectKeysOnlineProd()

CSCTFObjectKeysOnlineProd::~CSCTFObjectKeysOnlineProd ( )
inlineoverride

Definition at line 6 of file CSCTFObjectKeysOnlineProd.h.

6 {}

Member Function Documentation

◆ fillObjectKeys()

void CSCTFObjectKeysOnlineProd::fillObjectKeys ( FillType  pL1TriggerKey)
overridevirtual

Implements L1ObjectKeysOnlineProdBase.

Definition at line 9 of file CSCTFObjectKeysOnlineProd.cc.

9  {
10  std::string csctfKey = pL1TriggerKey->subsystemKey(L1TriggerKey::kCSCTF);
11 
12  if (!csctfKey.empty()) {
14  //----------------------------------------------------------------------------
15  // register the main CSCTF key
16  pL1TriggerKey->add("L1MuCSCTFConfigurationRcd", "L1MuCSCTFConfiguration", csctfKey);
17  //----------------------------------------------------------------------------
18  }
19 
20  if (m_enablePtLut) {
21  //----------------------------------------------------------------------------
22  // PT LUT
23  //
24  // while the sp configuration can change from sector to sector, the pt LUT file
25  //loaded in the CSCTF boards is the same for each SP => the same PTLUT_VERSION
26  // RETRIEVE THE VERSION FROM THE SP1 CONFIGURATION
27  //
28  // e.g., SELECT PTLUT_VERSION FROM CMS_CSC_TF.CSCTF_SP_CONF WHERE CSCTF_SP_CONF.SP_KEY = '1702100001'
29  // e.g., CSCTF key of the type day/month/year, e.g. 170210 = 17th February 2010
30  std::string sp1key = csctfKey + "0001";
31 
32  // query
34  "PTLUT_VERSION", "CMS_CSC_TF", "CSCTF_SP_CONF", "CSCTF_SP_CONF.SP_KEY", m_omdsReader.singleAttribute(sp1key));
35 
36  // check if query was successful
37  if (objectKeyResults.queryFailed() || objectKeyResults.numberRows() != 1) {
38  edm::LogError("L1-O2O") << "Problem with CSCTF key while retrieving "
39  << "the PTLUT_VERSION";
40  return;
41  }
42 
43  // register the pt LUT key
44  std::string ptLutKey;
45  objectKeyResults.fillVariable(ptLutKey);
46  pL1TriggerKey->add("L1MuCSCPtLutRcd", "L1MuCSCPtLut", ptLutKey);
47  //----------------------------------------------------------------------------
48  }
49  }
50 }

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(), l1t::OMDSReader::singleAttribute(), and AlCaHLTBitMon_QueryRunRegistry::string.

Member Data Documentation

◆ m_enableConfiguration

bool CSCTFObjectKeysOnlineProd::m_enableConfiguration
private

Definition at line 11 of file CSCTFObjectKeysOnlineProd.h.

Referenced by fillObjectKeys().

◆ m_enablePtLut

bool CSCTFObjectKeysOnlineProd::m_enablePtLut
private

Definition at line 12 of file CSCTFObjectKeysOnlineProd.h.

Referenced by fillObjectKeys().

l1t::OMDSReader::QueryResults
Definition: OMDSReader.h:49
L1ObjectKeysOnlineProdBase::m_omdsReader
l1t::OMDSReader m_omdsReader
Definition: L1ObjectKeysOnlineProdBase.h:54
l1t::OMDSReader::singleAttribute
const QueryResults singleAttribute(const T &data) const
Definition: OMDSReader.h:259
l1t::OMDSReader::QueryResults::fillVariable
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:274
L1ObjectKeysOnlineProdBase::L1ObjectKeysOnlineProdBase
L1ObjectKeysOnlineProdBase(const edm::ParameterSet &)
Definition: L1ObjectKeysOnlineProdBase.cc:47
CSCTFObjectKeysOnlineProd::m_enablePtLut
bool m_enablePtLut
Definition: CSCTFObjectKeysOnlineProd.h:12
l1t::OMDSReader::QueryResults::numberRows
int numberRows() const
Definition: OMDSReader.h:60
l1t::OMDSReader::basicQuery
const QueryResults basicQuery(const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
Definition: OMDSReader.cc:75
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
L1TriggerKey::kCSCTF
Definition: L1TriggerKey.h:27
l1t::OMDSReader::QueryResults::queryFailed
bool queryFailed() const
Definition: OMDSReader.h:59
CSCTFObjectKeysOnlineProd::m_enableConfiguration
bool m_enableConfiguration
Definition: CSCTFObjectKeysOnlineProd.h:11