#include <L1GtPsbSetupConfigOnlineProd.h>
Public Member Functions | |
L1GtPsbSetupConfigOnlineProd (const edm::ParameterSet &) | |
constructor More... | |
std::unique_ptr< L1GtPsbSetup > | newObject (const std::string &objectKey) override |
public methods More... | |
~L1GtPsbSetupConfigOnlineProd () override | |
destructor More... | |
Public Member Functions inherited from L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup > | |
L1ConfigOnlineProdBase (const edm::ParameterSet &) | |
virtual std::unique_ptr< L1GtPsbSetup > | produce (const L1GtPsbSetupRcd &iRecord) |
~L1ConfigOnlineProdBase () 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 |
SerialTaskQueueChain & | queue () |
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 ESProxyFactoryProducer & | operator= (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 ComponentDescription & | description () const |
void | fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const |
virtual void | initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs) |
bool | isUsingRecord (const EventSetupRecordKey &key) const |
KeyedProxies & | keyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0) |
const DataProxyProvider & | operator= (const DataProxyProvider &)=delete |
void | setAppendToDataLabel (const edm::ParameterSet &) |
void | setDescription (const ComponentDescription &iDescription) |
std::set< EventSetupRecordKey > | usingRecords () const |
virtual | ~DataProxyProvider () noexcept(false) |
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 > | |
auto | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={}) |
template<typename TFunc > | |
auto | setWhatProduced (TFunc &&func, const es::Label &iLabel={}) |
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator > | |
ESConsumesCollectorT< TRecord > | setWhatProduced (TFunc &&func, TDecorator &&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 L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup > | |
std::optional< edm::ESConsumesCollectorT< L1GtPsbSetupRcd > > | m_consumesCollector |
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 197 of file L1GtPsbSetupConfigOnlineProd.cc.
References numberFromString(), L1GtPsbConfig::PsbNumberLvdsGroups, L1GtPsbConfig::PsbSerLinkNumberChannels, and HLT_2022v15_cff::toAdd.
Referenced by newObject().
|
private |
Creates a new PSB object from a GT_PSB_SETUP entry and adds.
Definition at line 100 of file L1GtPsbSetupConfigOnlineProd.cc.
References l1t::OMDSReader::basicQuery(), checkOneLineResult(), extractBoolVector(), getRequiredValue(), mps_fire::i, L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >::m_omdsReader, numberedColumnName(), L1GtPsbConfig::PsbNumberLvdsGroups, L1GtPsbConfig::PsbSerLinkNumberChannels, l1t::OMDSReader::singleAttribute(), AlCaHLTBitMon_QueryRunRegistry::string, and HLT_2022v15_cff::toAdd.
Referenced by newObject().
|
private |
Ensures that result contains exactly one line, returning false otherwise.
Definition at line 231 of file L1GtPsbSetupConfigOnlineProd.cc.
References mps_fire::result.
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 216 of file L1GtPsbSetupConfigOnlineProd.cc.
References getRequiredValue(), mps_fire::i, numberedColumnName(), hcallasereventfilter2012_cfi::prefix, mps_fire::result, and makePlotsFromDump::suffix.
Referenced by addPsbFromDb().
|
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, and mps_fire::result.
Referenced by addPsbFromDb(), and extractBoolVector().
|
overridevirtual |
public methods
Implements L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >.
Definition at line 38 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 86 of file L1GtPsbSetupConfigOnlineProd.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by newObject().
|
private |
Concatenates prefix, number and suffix into a string.
Definition at line 251 of file L1GtPsbSetupConfigOnlineProd.cc.
References contentValuesFiles::number, hcallasereventfilter2012_cfi::prefix, and makePlotsFromDump::suffix.
Referenced by addPsbFromDb(), extractBoolVector(), and numberedColumnName().
|
private |
Special case for empty suffix.
Definition at line 247 of file L1GtPsbSetupConfigOnlineProd.cc.
References contentValuesFiles::number, numberedColumnName(), and hcallasereventfilter2012_cfi::prefix.
|
private |
Definition at line 260 of file L1GtPsbSetupConfigOnlineProd.cc.
References Exception, mps_fire::i, mps_fire::result, and cms::cuda::stream.
Referenced by addDefaultPsb().