#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::ESProductResolverProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Types inherited from edm::ESProductResolverFactoryProducer | |
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
Protected Types inherited from edm::eventsetup::ESProductResolverProvider | |
using | KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >> |
Protected Member Functions inherited from L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup > | |
bool | getObjectKey (const L1GtPsbSetupRcd &record, std::string &objectKey) |
Protected Member Functions inherited from edm::ESProducer | |
ESConsumesInfo * | consumesInfoPushBackNew () |
unsigned int | consumesInfoSize () const |
template<typename CallbackT , typename TList , typename TRecord > | |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>> iCallback, const TList *, const TRecord *iRecord, const es::Label &iLabel) |
template<typename CallbackT , typename TRecord > | |
void | registerProducts (std::shared_ptr< std::pair< unsigned int, std::shared_ptr< CallbackT >>>, const eventsetup::produce::Null *, const TRecord *, const es::Label &) |
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 TDecorator > | |
auto | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TDecorator &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::ESProductResolverFactoryProducer | |
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::ESProductResolverFactoryBase > iFactory, const std::string &iLabel=std::string()) |
KeyedResolversVector | registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override |
Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider | |
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_2024v11_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_2024v11_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(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, 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().