26 m_partitionNumber(parSet.getParameter<
int>(
"PartitionNumber")),
27 m_enableL1GtPrescaleFactorsAlgoTrig(parSet.getParameter<
bool>(
"EnableL1GtPrescaleFactorsAlgoTrig")),
28 m_enableL1GtPrescaleFactorsTechTrig(parSet.getParameter<
bool>(
"EnableL1GtPrescaleFactorsTechTrig")),
29 m_enableL1GtTriggerMaskAlgoTrig(parSet.getParameter<
bool>(
"EnableL1GtTriggerMaskAlgoTrig")),
30 m_enableL1GtTriggerMaskTechTrig(parSet.getParameter<
bool>(
"EnableL1GtTriggerMaskTechTrig")),
31 m_enableL1GtTriggerMaskVetoTechTrig(parSet.getParameter<
bool>(
"EnableL1GtTriggerMaskVetoTechTrig")) {
49 "GT_RUN_SETTINGS_KEY_CURRENT",
50 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
56 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtPrescaleFactorsAlgoTrigRcd: query failed ";
58 }
else if ((objectKeyResults.
numberRows() != 1)) {
59 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtPrescaleFactorsAlgoTrigRcd: " 60 << (objectKeyResults.
numberRows()) <<
" rows were returned";
68 LogTrace(
"L1GtRsObjectKeysOnlineProd") <<
"\nThe following GT_RUN_SETTINGS_FK key " 69 <<
"was found for L1GtPrescaleFactorsAlgoTrigRcd: \n " << objectKey
85 "GT_RUN_SETTINGS_KEY_CURRENT",
86 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
92 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtPrescaleFactorsTechTrigRcd: query failed ";
94 }
else if ((objectKeyResults.
numberRows() != 1)) {
95 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtPrescaleFactorsTechTrigRcd: " 96 << (objectKeyResults.
numberRows()) <<
" rows were returned";
104 LogTrace(
"L1GtRsObjectKeysOnlineProd") <<
"\nThe following GT_RUN_SETTINGS_FK key " 105 <<
"was found for L1GtPrescaleFactorsTechTrigRcd: \n " << objectKey
124 "GT_RUN_SETTINGS.ID",
127 "GT_RUN_SETTINGS_KEY_CURRENT",
128 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
134 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskAlgoTrigRcd: query failed ";
136 }
else if ((objectKeyResults.
numberRows() != 1)) {
137 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskAlgoTrigRcd: " 138 << (objectKeyResults.
numberRows()) <<
" rows were returned";
146 LogTrace(
"L1GtRsObjectKeysOnlineProd") <<
"\nThe following key was found for L1GtTriggerMaskAlgoTrigRcd: \n " 165 "GT_RUN_SETTINGS.ID",
168 "GT_RUN_SETTINGS_KEY_CURRENT",
169 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
175 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskTechTrigRcd: query failed ";
177 }
else if ((objectKeyResults.
numberRows() != 1)) {
178 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskTechTrigRcd: " 179 << (objectKeyResults.
numberRows()) <<
" rows were returned";
187 LogTrace(
"L1GtRsObjectKeysOnlineProd") <<
"\nThe following key was found for L1GtTriggerMaskTechTrigRcd: \n " 206 "GT_RUN_SETTINGS.ID",
209 "GT_RUN_SETTINGS_KEY_CURRENT",
210 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
216 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskVetoTechTrigRcd: query failed ";
218 }
else if ((objectKeyResults.
numberRows() != 1)) {
219 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskVetoTechTrigRcd: " 220 << (objectKeyResults.
numberRows()) <<
" rows were returned";
228 LogTrace(
"L1GtRsObjectKeysOnlineProd") <<
"\nThe following key was found for L1GtTriggerMaskVetoTechTrigRcd: \n " 242 if (!objectKey.empty()) {
243 pL1TriggerKey->add(
"L1GtPrescaleFactorsAlgoTrigRcd",
"L1GtPrescaleFactors", objectKey);
249 if (!objectKey.empty()) {
250 pL1TriggerKey->add(
"L1GtPrescaleFactorsTechTrigRcd",
"L1GtPrescaleFactors", objectKey);
256 if (!objectKey.empty()) {
257 pL1TriggerKey->add(
"L1GtTriggerMaskAlgoTrigRcd",
"L1GtTriggerMask", objectKey);
263 if (!objectKey.empty()) {
264 pL1TriggerKey->add(
"L1GtTriggerMaskTechTrigRcd",
"L1GtTriggerMask", objectKey);
270 if (!objectKey.empty()) {
271 pL1TriggerKey->add(
"L1GtTriggerMaskVetoTechTrigRcd",
"L1GtTriggerMask", objectKey);
const QueryResults singleAttribute(const T &data) const
bool m_enableL1GtPrescaleFactorsAlgoTrig
enable key search for each record
std::unique_ptr< L1TriggerKey >::pointer FillType
l1t::OMDSReader m_omdsReader
bool m_enableL1GtTriggerMaskTechTrig
std::string keyL1GtTriggerMaskVetoTechTrig(const std::string &)
Log< level::Error, false > LogError
std::string keyL1GtTriggerMaskTechTrig(const std::string &)
const QueryResults basicQueryGenericKey(const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
bool m_enableL1GtTriggerMaskVetoTechTrig
std::string keyL1GtTriggerMaskAlgoTrig(const std::string &)
bool m_enableL1GtPrescaleFactorsTechTrig
std::string keyL1GtPrescaleFactorsTechTrig(const std::string &)
const QueryResults basicQuery(const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
L1GtRsObjectKeysOnlineProd(const edm::ParameterSet &)
constructor
bool fillVariable(const std::string &columnName, T &outputVariable) const
std::string keyL1GtPrescaleFactorsAlgoTrig(const std::string &)
keys for individual objects
void fillObjectKeys(FillType pL1TriggerKey) override
public methods
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
~L1GtRsObjectKeysOnlineProd() override
destructor
bool m_enableL1GtTriggerMaskAlgoTrig
int m_partitionNumber
partition number