#include <L1GtPsbSetupConfigOnlineProd.h>
Private Member Functions | |
void | addDefaultPsb (const std::string &psbColumn, std::vector< L1GtPsbConfig > &psbSetup) const |
Creates a default valued PSB from an empty foreign key in the GT_SETUP table. More... | |
void | addPsbFromDb (const std::string &psbKey, std::vector< L1GtPsbConfig > &psbSetup) |
Creates a new PSB object from a GT_PSB_SETUP entry and adds. More... | |
bool | checkOneLineResult (const l1t::OMDSReader::QueryResults &result, const std::string &queryDescription) const |
Ensures that result contains exactly one line, returning false otherwise. More... | |
std::vector< bool > | extractBoolVector (const l1t::OMDSReader::QueryResults &query, const std::string &prefix, const std::string &suffix, unsigned nColumns) const |
template<class T > | |
void | getRequiredValue (const l1t::OMDSReader::QueryResults &result, const std::string &colName, T &value) const |
std::string | numberedColumnName (const std::string &prefix, unsigned number, const std::string &suffix) const |
Concatenates prefix, number and suffix into a string. More... | |
std::string | numberedColumnName (const std::string &prefix, unsigned number) const |
Special case for empty suffix. More... | |
unsigned | numberFromString (const std::string &aString) const |
Static Private Member Functions | |
static bool | notPsbColumnName (const std::string &columnName) |
Additional Inherited Members | |
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 L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup > | |
bool | getObjectKey (const L1GtPsbSetupRcd &record, std::string &objectKey) |
Protected Member Functions inherited from edm::ESProducer | |
template<typename T > | |
auto | setWhatProduced (T *iThis, const es::Label &iLabel={}) |
template<typename T > | |
auto | setWhatProduced (T *iThis, const char *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={}) |
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 L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup > | |
bool | m_copyFromCondDB |
cond::persistency::Session | m_dbSession |
bool | m_forceGeneration |
l1t::OMDSReader | m_omdsReader |
Description: online producer for L1GtPsbSetup.
Implementation: <TODO: enter implementation details>
Description: online producer for L1GtPsbSetup.
Implementation: <TODO: enter implementation details>
Definition at line 35 of file L1GtPsbSetupConfigOnlineProd.h.
L1GtPsbSetupConfigOnlineProd::L1GtPsbSetupConfigOnlineProd | ( | const edm::ParameterSet & | parSet | ) |
|
override |
|
private |
Creates a default valued PSB from an empty foreign key in the GT_SETUP table.
Definition at line 198 of file L1GtPsbSetupConfigOnlineProd.cc.
References numberFromString(), L1GtPsbConfig::PsbNumberLvdsGroups, L1GtPsbConfig::PsbSerLinkNumberChannels, L1GtPsbConfig::setGtBoardSlot(), L1GtPsbConfig::setGtPsbCh0SendLvds(), L1GtPsbConfig::setGtPsbCh1SendLvds(), L1GtPsbConfig::setGtPsbEnableRecLvds(), L1GtPsbConfig::setGtPsbEnableRecSerLink(), and HLT_2018_cff::toAdd.
Referenced by newObject().
|
private |
Creates a new PSB object from a GT_PSB_SETUP entry and adds.
Definition at line 101 of file L1GtPsbSetupConfigOnlineProd.cc.
References l1t::OMDSReader::basicQuery(), checkOneLineResult(), extractBoolVector(), getRequiredValue(), mps_fire::i, L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >::m_omdsReader, numberedColumnName(), L1GtPsbConfig::PsbNumberLvdsGroups, L1GtPsbConfig::PsbSerLinkNumberChannels, L1GtPsbConfig::setGtBoardSlot(), L1GtPsbConfig::setGtPsbCh0SendLvds(), L1GtPsbConfig::setGtPsbCh1SendLvds(), L1GtPsbConfig::setGtPsbEnableRecLvds(), L1GtPsbConfig::setGtPsbEnableRecSerLink(), l1t::OMDSReader::singleAttribute(), AlCaHLTBitMon_QueryRunRegistry::string, and HLT_2018_cff::toAdd.
Referenced by newObject().
|
private |
Ensures that result contains exactly one line, returning false otherwise.
Definition at line 232 of file L1GtPsbSetupConfigOnlineProd.cc.
References l1t::OMDSReader::QueryResults::numberRows(), and l1t::OMDSReader::QueryResults::queryFailed().
Referenced by addPsbFromDb(), and newObject().
|
private |
A function to extract a vector of booleans from the GT database format (NUMBER(1) columns labeled prefix<nn>suffix).
Definition at line 217 of file L1GtPsbSetupConfigOnlineProd.cc.
References getRequiredValue(), mps_fire::i, hgcaltilesconstants::nColumns, numberedColumnName(), and mps_fire::result.
Referenced by addPsbFromDb(), and getRequiredValue().
|
inlineprivate |
A wrapper for OMDSReader::QueryResults::fillVariable that throws an exception when the field it accesses was NULL.
Definition at line 63 of file L1GtPsbSetupConfigOnlineProd.h.
References Exception, extractBoolVector(), l1t::OMDSReader::QueryResults::fillVariable(), hgcaltilesconstants::nColumns, contentValuesFiles::number, numberedColumnName(), numberFromString(), ZMuMuAnalysisNtupler_cff::prefix, AlCaHLTBitMon_QueryRunRegistry::string, and createPayload::suffix.
Referenced by addPsbFromDb(), and extractBoolVector().
|
overridevirtual |
public methods
Implements L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >.
Definition at line 39 of file L1GtPsbSetupConfigOnlineProd.cc.
References addDefaultPsb(), addPsbFromDb(), l1t::OMDSReader::basicQuery(), checkOneLineResult(), l1t::OMDSReader::columnNames(), l1t::OMDSReader::QueryResults::fillVariable(), edm::isDebugEnabled(), LogTrace, L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >::m_omdsReader, notPsbColumnName(), l1t::OMDSReader::singleAttribute(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
staticprivate |
A predicate to filter the column names of GT_SETUP for those that contain foreign keys to GT_PSB_SETUP.
Definition at line 87 of file L1GtPsbSetupConfigOnlineProd.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by newObject().
|
private |
Concatenates prefix, number and suffix into a string.
Definition at line 252 of file L1GtPsbSetupConfigOnlineProd.cc.
References createPayload::suffix.
Referenced by addPsbFromDb(), extractBoolVector(), getRequiredValue(), and numberedColumnName().
|
private |
Special case for empty suffix.
Definition at line 248 of file L1GtPsbSetupConfigOnlineProd.cc.
References numberedColumnName().
|
private |
Definition at line 261 of file L1GtPsbSetupConfigOnlineProd.cc.
References DEFINE_FWK_EVENTSETUP_MODULE, Exception, mps_fire::i, and mps_fire::result.
Referenced by addDefaultPsb(), and getRequiredValue().