27 parSet.getParameter<int> (
"PartitionNumber")),
28 m_enableL1GtPrescaleFactorsAlgoTrig(
29 parSet.getParameter<bool> (
"EnableL1GtPrescaleFactorsAlgoTrig")),
30 m_enableL1GtPrescaleFactorsTechTrig(
31 parSet.getParameter<bool> (
"EnableL1GtPrescaleFactorsTechTrig")),
32 m_enableL1GtTriggerMaskAlgoTrig(
33 parSet.getParameter<bool> (
"EnableL1GtTriggerMaskAlgoTrig")),
34 m_enableL1GtTriggerMaskTechTrig(
35 parSet.getParameter<bool> (
"EnableL1GtTriggerMaskTechTrig")),
36 m_enableL1GtTriggerMaskVetoTechTrig(
37 parSet.getParameter<bool> (
"EnableL1GtTriggerMaskVetoTechTrig")) {
58 gtSchema,
"GT_RUN_SETTINGS_KEY_CURRENT",
59 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
65 <<
"Problem with key for record L1GtPrescaleFactorsAlgoTrigRcd: query failed ";
67 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
68 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtPrescaleFactorsAlgoTrigRcd: "
69 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
77 LogTrace(
"L1GtRsObjectKeysOnlineProd")
78 <<
"\nThe following GT_RUN_SETTINGS_FK key "
79 <<
"was found for L1GtPrescaleFactorsAlgoTrigRcd: \n "
96 gtSchema,
"GT_RUN_SETTINGS_KEY_CURRENT",
97 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
103 <<
"Problem with key for record L1GtPrescaleFactorsTechTrigRcd: query failed ";
105 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
106 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtPrescaleFactorsTechTrigRcd: "
107 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
115 LogTrace(
"L1GtRsObjectKeysOnlineProd")
116 <<
"\nThe following GT_RUN_SETTINGS_FK key "
117 <<
"was found for L1GtPrescaleFactorsTechTrigRcd: \n "
135 "FINOR_ALGO_FK", gtSchema,
"GT_RUN_SETTINGS",
"GT_RUN_SETTINGS.ID",
137 "GT_RUN_SETTINGS_FK", gtSchema,
"GT_RUN_SETTINGS_KEY_CURRENT",
138 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
144 <<
"Problem with key for record L1GtTriggerMaskAlgoTrigRcd: query failed ";
146 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
147 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskAlgoTrigRcd: "
148 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
156 LogTrace(
"L1GtRsObjectKeysOnlineProd")
157 <<
"\nThe following key was found for L1GtTriggerMaskAlgoTrigRcd: \n " << objectKey
173 "FINOR_TT_FK", gtSchema,
"GT_RUN_SETTINGS",
"GT_RUN_SETTINGS.ID",
175 "GT_RUN_SETTINGS_FK", gtSchema,
"GT_RUN_SETTINGS_KEY_CURRENT",
176 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
182 <<
"Problem with key for record L1GtTriggerMaskTechTrigRcd: query failed ";
184 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
185 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskTechTrigRcd: "
186 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
194 LogTrace(
"L1GtRsObjectKeysOnlineProd")
195 <<
"\nThe following key was found for L1GtTriggerMaskTechTrigRcd: \n " << objectKey
211 "VETO_TT_FK", gtSchema,
"GT_RUN_SETTINGS",
"GT_RUN_SETTINGS.ID",
213 "GT_RUN_SETTINGS_FK", gtSchema,
"GT_RUN_SETTINGS_KEY_CURRENT",
214 "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
220 <<
"Problem with key for record L1GtTriggerMaskVetoTechTrigRcd: query failed ";
222 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
223 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMaskVetoTechTrigRcd: "
224 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
232 LogTrace(
"L1GtRsObjectKeysOnlineProd")
233 <<
"\nThe following key was found for L1GtTriggerMaskVetoTechTrigRcd: \n "
247 if (!objectKey.empty()) {
249 "L1GtPrescaleFactorsAlgoTrigRcd",
"L1GtPrescaleFactors", objectKey);
255 if (!objectKey.empty()) {
257 "L1GtPrescaleFactorsTechTrigRcd",
"L1GtPrescaleFactors", objectKey);
263 if (!objectKey.empty()) {
264 pL1TriggerKey->add(
"L1GtTriggerMaskAlgoTrigRcd",
"L1GtTriggerMask", objectKey);
270 if (!objectKey.empty()) {
271 pL1TriggerKey->add(
"L1GtTriggerMaskTechTrigRcd",
"L1GtTriggerMask", objectKey);
277 if (!objectKey.empty()) {
279 "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