#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) const |
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 | |
Public Types inherited from edm::eventsetup::DataProxyProvider | |
typedef std::vector< std::pair < DataKey, boost::shared_ptr < DataProxy > > > | KeyedProxies |
typedef std::vector < EventSetupRecordKey > | Keys |
typedef std::map < EventSetupRecordKey, KeyedProxies > | RecordProxies |
Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Member Functions inherited from L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup > | |
bool | getObjectKey (const L1GtPsbSetupRcd &record, boost::shared_ptr< L1GtPsbSetup > data, std::string &objectKey) |
Protected Member Functions inherited from edm::ESProducer | |
template<typename T > | |
void | setWhatProduced (T *iThis, const es::Label &iLabel=es::Label()) |
template<typename T > | |
void | setWhatProduced (T *iThis, const char *iLabel) |
template<typename T > | |
void | setWhatProduced (T *iThis, const std::string &iLabel) |
template<typename T , typename TDecorator > | |
void | setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label()) |
template<typename T , typename TReturn , typename TRecord > | |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label()) |
template<typename T , typename TReturn , typename TRecord , typename TArg > | |
void | setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label()) |
Protected Member Functions inherited from edm::ESProxyFactoryProducer | |
template<class TFactory > | |
void | registerFactory (std::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string()) |
virtual void | registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_ptr< eventsetup::ProxyFactoryBase > &iFactory, const std::string &iLabel=std::string()) |
virtual void | registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList) |
override DataProxyProvider method More... | |
Protected Member Functions inherited from edm::eventsetup::DataProxyProvider | |
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
deletes all the Proxies in aStream More... | |
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &) |
Protected Attributes inherited from L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup > | |
bool | m_copyFromCondDB |
cond::DbConnection | m_dbConnection |
cond::DbSession | 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 | ) |
L1GtPsbSetupConfigOnlineProd::~L1GtPsbSetupConfigOnlineProd | ( | ) |
destructor
Definition at line 35 of file L1GtPsbSetupConfigOnlineProd.cc.
|
private |
Creates a default valued PSB from an empty foreign key in the GT_SETUP table.
Definition at line 216 of file L1GtPsbSetupConfigOnlineProd.cc.
References numberFromString(), L1GtPsbConfig::PsbNumberLvdsGroups, L1GtPsbConfig::PsbSerLinkNumberChannels, L1GtPsbConfig::setGtBoardSlot(), L1GtPsbConfig::setGtPsbCh0SendLvds(), L1GtPsbConfig::setGtPsbCh1SendLvds(), L1GtPsbConfig::setGtPsbEnableRecLvds(), L1GtPsbConfig::setGtPsbEnableRecSerLink(), and makeLayoutFileForGui::toAdd.
Referenced by newObject().
|
private |
Creates a new PSB object from a GT_PSB_SETUP entry and adds.
Definition at line 115 of file L1GtPsbSetupConfigOnlineProd.cc.
References l1t::OMDSReader::basicQuery(), checkOneLineResult(), extractBoolVector(), getRequiredValue(), 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 makeLayoutFileForGui::toAdd.
Referenced by newObject().
|
private |
Ensures that result contains exactly one line, returning false otherwise.
Definition at line 251 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 236 of file L1GtPsbSetupConfigOnlineProd.cc.
References getRequiredValue(), i, numberedColumnName(), and query::result.
Referenced by addPsbFromDb().
|
inlineprivate |
A wrapper for OMDSReader::QueryResults::fillVariable that throws an exception when the field it accesses was NULL.
Definition at line 68 of file L1GtPsbSetupConfigOnlineProd.h.
References edm::hlt::Exception, and l1t::OMDSReader::QueryResults::fillVariable().
Referenced by addPsbFromDb(), and extractBoolVector().
|
virtual |
public methods
Implements L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >.
Definition at line 43 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 100 of file L1GtPsbSetupConfigOnlineProd.cc.
References AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by newObject().
|
private |
Concatenates prefix, number and suffix into a string.
Definition at line 276 of file L1GtPsbSetupConfigOnlineProd.cc.
References createPayload::suffix.
Referenced by addPsbFromDb(), extractBoolVector(), and numberedColumnName().
|
private |
Special case for empty suffix.
Definition at line 269 of file L1GtPsbSetupConfigOnlineProd.cc.
References numberedColumnName().
|
private |
Definition at line 285 of file L1GtPsbSetupConfigOnlineProd.cc.
References edm::hlt::Exception, i, query::result, and edmStreamStallGrapher::stream.
Referenced by addDefaultPsb().