1 #ifndef L1GtConfigProducers_L1GtPsbSetupConfigOnlineProd_h 2 #define L1GtConfigProducers_L1GtPsbSetupConfigOnlineProd_h 65 throw cms::Exception(
"NullValue") <<
"Required field " << colName <<
" is NULL in database!";
74 unsigned nColumns)
const;
static bool notPsbColumnName(const std::string &columnName)
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.
std::string numberedColumnName(const std::string &prefix, unsigned number, const std::string &suffix) const
Concatenates prefix, number and suffix into a string.
std::unique_ptr< L1GtPsbSetup > newObject(const std::string &objectKey) override
public methods
~L1GtPsbSetupConfigOnlineProd() override
destructor
bool checkOneLineResult(const l1t::OMDSReader::QueryResults &result, const std::string &queryDescription) const
Ensures that result contains exactly one line, returning false otherwise.
void getRequiredValue(const l1t::OMDSReader::QueryResults &result, const std::string &colName, T &value) const
std::vector< bool > extractBoolVector(const l1t::OMDSReader::QueryResults &query, const std::string &prefix, const std::string &suffix, unsigned nColumns) const
L1GtPsbSetupConfigOnlineProd(const edm::ParameterSet &)
constructor
unsigned numberFromString(const std::string &aString) const
void addPsbFromDb(const std::string &psbKey, std::vector< L1GtPsbConfig > &psbSetup)
Creates a new PSB object from a GT_PSB_SETUP entry and adds.