29 parSet.getParameter<int> (
"PartitionNumber")),
30 m_enableL1GtPrescaleFactorsAlgoTrig(
31 parSet.getParameter<bool> (
"EnableL1GtPrescaleFactorsAlgoTrig")),
32 m_enableL1GtPrescaleFactorsTechTrig(
33 parSet.getParameter<bool> (
"EnableL1GtPrescaleFactorsTechTrig")),
34 m_enableL1GtTriggerMaskAlgoTrig(
35 parSet.getParameter<bool> (
"EnableL1GtTriggerMaskAlgoTrig")),
36 m_enableL1GtTriggerMaskTechTrig(
37 parSet.getParameter<bool> (
"EnableL1GtTriggerMaskTechTrig")),
38 m_enableL1GtTriggerMaskVetoTechTrig(
39 parSet.getParameter<bool> (
"EnableL1GtTriggerMaskVetoTechTrig")) {
54 std::string objectKey;
60 gtSchema,
"GT_RUN_SETTINGS_KEY_CURRENT",
61 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
67 <<
"Problem with key for record L1GtPrescaleFactorsAlgoTrigRcd: query failed ";
69 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
70 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtPrescaleFactorsAlgoTrigRcd: "
71 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
79 LogTrace(
"L1GtRsObjectKeysOnlineProd")
80 <<
"\nThe following GT_RUN_SETTINGS_FK key "
81 <<
"was found for L1GtPrescaleFactorsAlgoTrigRcd: \n "
92 std::string objectKey;
98 gtSchema,
"GT_RUN_SETTINGS_KEY_CURRENT",
99 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
105 <<
"Problem with key for record L1GtPrescaleFactorsTechTrigRcd: query failed ";
107 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
108 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtPrescaleFactorsTechTrigRcd: "
109 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
117 LogTrace(
"L1GtRsObjectKeysOnlineProd")
118 <<
"\nThe following GT_RUN_SETTINGS_FK key "
119 <<
"was found for L1GtPrescaleFactorsTechTrigRcd: \n "
130 std::string objectKey;
137 "FINOR_ALGO_FK", gtSchema,
"GT_RUN_SETTINGS",
"GT_RUN_SETTINGS.ID",
139 "GT_RUN_SETTINGS_FK", gtSchema,
"GT_RUN_SETTINGS_KEY_CURRENT",
140 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
146 <<
"Problem with key for record L1GtTriggerMaskAlgoTrigRcd: query failed ";
148 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
149 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskAlgoTrigRcd: "
150 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
158 LogTrace(
"L1GtRsObjectKeysOnlineProd")
159 <<
"\nThe following key was found for L1GtTriggerMaskAlgoTrigRcd: \n " << objectKey
168 std::string objectKey;
175 "FINOR_TT_FK", gtSchema,
"GT_RUN_SETTINGS",
"GT_RUN_SETTINGS.ID",
177 "GT_RUN_SETTINGS_FK", gtSchema,
"GT_RUN_SETTINGS_KEY_CURRENT",
178 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
184 <<
"Problem with key for record L1GtTriggerMaskTechTrigRcd: query failed ";
186 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
187 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskTechTrigRcd: "
188 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
196 LogTrace(
"L1GtRsObjectKeysOnlineProd")
197 <<
"\nThe following key was found for L1GtTriggerMaskTechTrigRcd: \n " << objectKey
206 std::string objectKey;
213 "VETO_TT_FK", gtSchema,
"GT_RUN_SETTINGS",
"GT_RUN_SETTINGS.ID",
215 "GT_RUN_SETTINGS_FK", gtSchema,
"GT_RUN_SETTINGS_KEY_CURRENT",
216 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
222 <<
"Problem with key for record L1GtTriggerMaskVetoTechTrigRcd: query failed ";
224 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
225 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskVetoTechTrigRcd: "
226 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
234 LogTrace(
"L1GtRsObjectKeysOnlineProd")
235 <<
"\nThe following key was found for L1GtTriggerMaskVetoTechTrigRcd: \n "
245 const std::string gtSchema =
"CMS_GT";
249 if (!objectKey.empty()) {
251 "L1GtPrescaleFactorsAlgoTrigRcd",
"L1GtPrescaleFactors", objectKey);
257 if (!objectKey.empty()) {
259 "L1GtPrescaleFactorsTechTrigRcd",
"L1GtPrescaleFactors", objectKey);
265 if (!objectKey.empty()) {
266 pL1TriggerKey->add(
"L1GtTriggerMaskAlgoTrigRcd",
"L1GtTriggerMask", objectKey);
272 if (!objectKey.empty()) {
273 pL1TriggerKey->add(
"L1GtTriggerMaskTechTrigRcd",
"L1GtTriggerMask", objectKey);
279 if (!objectKey.empty()) {
281 "L1GtTriggerMaskVetoTechTrigRcd",
"L1GtTriggerMask", objectKey);
bool fillVariable(const std::string &columnName, T &outputVariable) const
bool m_enableL1GtPrescaleFactorsAlgoTrig
enable key search for each record
const QueryResults singleAttribute(const T &data) const
l1t::OMDSReader m_omdsReader
bool m_enableL1GtTriggerMaskTechTrig
std::string keyL1GtTriggerMaskVetoTechTrig(const std::string &)
std::string keyL1GtTriggerMaskTechTrig(const std::string &)
bool m_enableL1GtTriggerMaskVetoTechTrig
boost::shared_ptr< L1TriggerKey > ReturnType
std::string keyL1GtTriggerMaskAlgoTrig(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="") const
bool m_enableL1GtPrescaleFactorsTechTrig
std::string keyL1GtPrescaleFactorsTechTrig(const std::string &)
L1GtRsObjectKeysOnlineProd(const edm::ParameterSet &)
constructor
std::string keyL1GtPrescaleFactorsAlgoTrig(const std::string &)
keys for individual objects
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
virtual void fillObjectKeys(ReturnType pL1TriggerKey)
public methods
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="") const
bool m_enableL1GtTriggerMaskAlgoTrig
~L1GtRsObjectKeysOnlineProd()
destructor
int m_partitionNumber
partition number