CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
L1GtRsObjectKeysOnlineProd Class Reference

#include <L1GtRsObjectKeysOnlineProd.h>

Inheritance diagram for L1GtRsObjectKeysOnlineProd:
L1ObjectKeysOnlineProdBase edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

void fillObjectKeys (FillType pL1TriggerKey) override
 public methods More...
 
 L1GtRsObjectKeysOnlineProd (const edm::ParameterSet &)
 constructor More...
 
 ~L1GtRsObjectKeysOnlineProd () override
 destructor More...
 
- Public Member Functions inherited from L1ObjectKeysOnlineProdBase
 L1ObjectKeysOnlineProdBase (const edm::ParameterSet &)
 
ReturnType produce (const L1TriggerKeyRcd &)
 
 ~L1ObjectKeysOnlineProdBase () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
template<typename Record >
void updateFromMayConsumes (unsigned int iIndex, const Record &iRecord)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer ()(false) override
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
 ESProxyFactoryProducer (const ESProxyFactoryProducer &)=delete
 
const ESProxyFactoryProduceroperator= (const ESProxyFactoryProducer &)=delete
 
 ~ESProxyFactoryProducer () noexcept(false) override
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
void createKeyedProxies (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
 DataProxyProvider ()
 
 DataProxyProvider (const DataProxyProvider &)=delete
 
const ComponentDescriptiondescription () const
 
void fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const
 
virtual void initConcurrentIOVs (EventSetupRecordKey const &key, unsigned int nConcurrentIOVs)
 
bool isUsingRecord (const EventSetupRecordKey &key) const
 
KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey, unsigned int iovIndex=0)
 
const DataProxyProvideroperator= (const DataProxyProvider &)=delete
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Private Member Functions

std::string keyL1GtPrescaleFactorsAlgoTrig (const std::string &)
 keys for individual objects More...
 
std::string keyL1GtPrescaleFactorsTechTrig (const std::string &)
 
std::string keyL1GtTriggerMaskAlgoTrig (const std::string &)
 
std::string keyL1GtTriggerMaskTechTrig (const std::string &)
 
std::string keyL1GtTriggerMaskVetoTechTrig (const std::string &)
 

Private Attributes

bool m_enableL1GtPrescaleFactorsAlgoTrig
 enable key search for each record More...
 
bool m_enableL1GtPrescaleFactorsTechTrig
 
bool m_enableL1GtTriggerMaskAlgoTrig
 
bool m_enableL1GtTriggerMaskTechTrig
 
bool m_enableL1GtTriggerMaskVetoTechTrig
 
int m_partitionNumber
 partition number More...
 

Additional Inherited Members

- Public Types inherited from L1ObjectKeysOnlineProdBase
typedef std::unique_ptr< L1TriggerKey >::pointer FillType
 
typedef std::unique_ptr< L1TriggerKeyReturnType
 
- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Types inherited from edm::ESProxyFactoryProducer
using EventSetupRecordKey = eventsetup::EventSetupRecordKey
 
- Protected Types inherited from edm::eventsetup::DataProxyProvider
using KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy >>>
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &iLabel={})
 
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
auto setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord >
auto setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel={})
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
ESConsumesCollectorT< TRecord > setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={})
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
KeyedProxiesVector registerProxies (const EventSetupRecordKey &, unsigned int iovIndex) override
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &key)
 
- Protected Attributes inherited from L1ObjectKeysOnlineProdBase
l1t::OMDSReader m_omdsReader
 

Detailed Description

Description: online producer for L1 GT record keys from RUN SETTINGS.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Definition at line 24 of file L1GtRsObjectKeysOnlineProd.h.

Constructor & Destructor Documentation

L1GtRsObjectKeysOnlineProd::L1GtRsObjectKeysOnlineProd ( const edm::ParameterSet parSet)

constructor

Definition at line 24 of file L1GtRsObjectKeysOnlineProd.cc.

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")) {
32  // empty
33 }
T getParameter(std::string const &) const
bool m_enableL1GtPrescaleFactorsAlgoTrig
enable key search for each record
L1ObjectKeysOnlineProdBase(const edm::ParameterSet &)
L1GtRsObjectKeysOnlineProd::~L1GtRsObjectKeysOnlineProd ( )
override

destructor

Definition at line 36 of file L1GtRsObjectKeysOnlineProd.cc.

36  {
37  // empty
38 }

Member Function Documentation

void L1GtRsObjectKeysOnlineProd::fillObjectKeys ( FillType  pL1TriggerKey)
overridevirtual

public methods

Implements L1ObjectKeysOnlineProdBase.

Definition at line 237 of file L1GtRsObjectKeysOnlineProd.cc.

References DEFINE_FWK_EVENTSETUP_MODULE, keyL1GtPrescaleFactorsAlgoTrig(), keyL1GtPrescaleFactorsTechTrig(), keyL1GtTriggerMaskAlgoTrig(), keyL1GtTriggerMaskTechTrig(), keyL1GtTriggerMaskVetoTechTrig(), m_enableL1GtPrescaleFactorsAlgoTrig, m_enableL1GtPrescaleFactorsTechTrig, m_enableL1GtTriggerMaskAlgoTrig, m_enableL1GtTriggerMaskTechTrig, m_enableL1GtTriggerMaskVetoTechTrig, and AlCaHLTBitMon_QueryRunRegistry::string.

237  {
238  const std::string gtSchema = "CMS_GT";
239 
241  const std::string& objectKey = keyL1GtPrescaleFactorsAlgoTrig(gtSchema);
242  if (!objectKey.empty()) {
243  pL1TriggerKey->add("L1GtPrescaleFactorsAlgoTrigRcd", "L1GtPrescaleFactors", objectKey);
244  }
245  }
246 
248  const std::string& objectKey = keyL1GtPrescaleFactorsTechTrig(gtSchema);
249  if (!objectKey.empty()) {
250  pL1TriggerKey->add("L1GtPrescaleFactorsTechTrigRcd", "L1GtPrescaleFactors", objectKey);
251  }
252  }
253 
255  const std::string& objectKey = keyL1GtTriggerMaskAlgoTrig(gtSchema);
256  if (!objectKey.empty()) {
257  pL1TriggerKey->add("L1GtTriggerMaskAlgoTrigRcd", "L1GtTriggerMask", objectKey);
258  }
259  }
260 
262  const std::string& objectKey = keyL1GtTriggerMaskTechTrig(gtSchema);
263  if (!objectKey.empty()) {
264  pL1TriggerKey->add("L1GtTriggerMaskTechTrigRcd", "L1GtTriggerMask", objectKey);
265  }
266  }
267 
269  const std::string& objectKey = keyL1GtTriggerMaskVetoTechTrig(gtSchema);
270  if (!objectKey.empty()) {
271  pL1TriggerKey->add("L1GtTriggerMaskVetoTechTrigRcd", "L1GtTriggerMask", objectKey);
272  }
273  }
274 }
bool m_enableL1GtPrescaleFactorsAlgoTrig
enable key search for each record
std::string keyL1GtTriggerMaskVetoTechTrig(const std::string &)
std::string keyL1GtTriggerMaskTechTrig(const std::string &)
std::string keyL1GtTriggerMaskAlgoTrig(const std::string &)
std::string keyL1GtPrescaleFactorsTechTrig(const std::string &)
std::string keyL1GtPrescaleFactorsAlgoTrig(const std::string &)
keys for individual objects
std::string L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsAlgoTrig ( const std::string &  gtSchema)
private

keys for individual objects

Definition at line 41 of file L1GtRsObjectKeysOnlineProd.cc.

References l1t::OMDSReader::basicQueryGenericKey(), l1t::OMDSReader::QueryResults::fillVariable(), edm::isDebugEnabled(), LogTrace, L1ObjectKeysOnlineProdBase::m_omdsReader, m_partitionNumber, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), l1t::OMDSReader::singleAttribute(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by fillObjectKeys().

41  {
42  std::string objectKey;
43 
44  // SELECT GT_RUN_SETTINGS_FK FROM CMS_GT.GT_RUN_SETTINGS_KEY_CURRENT
45  // WHERE GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER = m_partitionNumber
46  l1t::OMDSReader::QueryResults objectKeyResults =
47  m_omdsReader.basicQueryGenericKey<int>("GT_RUN_SETTINGS_FK",
48  gtSchema,
49  "GT_RUN_SETTINGS_KEY_CURRENT",
50  "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
52  "");
53 
54  // check if query was successful
55  if (objectKeyResults.queryFailed()) {
56  edm::LogError("L1-O2O") << "Problem with key for record L1GtPrescaleFactorsAlgoTrigRcd: query failed ";
57  return objectKey;
58  } else if ((objectKeyResults.numberRows() != 1)) {
59  edm::LogError("L1-O2O") << "Problem with key for record L1GtPrescaleFactorsAlgoTrigRcd: "
60  << (objectKeyResults.numberRows()) << " rows were returned";
61  return objectKey;
62  }
63 
64  objectKeyResults.fillVariable(objectKey);
65 
66  //
67  if (edm::isDebugEnabled()) {
68  LogTrace("L1GtRsObjectKeysOnlineProd") << "\nThe following GT_RUN_SETTINGS_FK key "
69  << "was found for L1GtPrescaleFactorsAlgoTrigRcd: \n " << objectKey
70  << "\nfor partition " << m_partitionNumber << "\n"
71  << std::endl;
72  }
73 
74  return objectKey;
75 }
bool isDebugEnabled()
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:274
const QueryResults singleAttribute(const T &data) const
Definition: OMDSReader.h:259
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="")
Definition: OMDSReader.h:194
#define LogTrace(id)
std::string L1GtRsObjectKeysOnlineProd::keyL1GtPrescaleFactorsTechTrig ( const std::string &  gtSchema)
private

Definition at line 77 of file L1GtRsObjectKeysOnlineProd.cc.

References l1t::OMDSReader::basicQueryGenericKey(), l1t::OMDSReader::QueryResults::fillVariable(), edm::isDebugEnabled(), LogTrace, L1ObjectKeysOnlineProdBase::m_omdsReader, m_partitionNumber, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), l1t::OMDSReader::singleAttribute(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by fillObjectKeys().

77  {
78  std::string objectKey;
79 
80  // SELECT GT_RUN_SETTINGS_FK FROM CMS_GT.GT_RUN_SETTINGS_KEY_CURRENT
81  // WHERE GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER = m_partitionNumber
82  l1t::OMDSReader::QueryResults objectKeyResults =
83  m_omdsReader.basicQueryGenericKey<int>("GT_RUN_SETTINGS_FK",
84  gtSchema,
85  "GT_RUN_SETTINGS_KEY_CURRENT",
86  "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
88  "");
89 
90  // check if query was successful
91  if (objectKeyResults.queryFailed()) {
92  edm::LogError("L1-O2O") << "Problem with key for record L1GtPrescaleFactorsTechTrigRcd: query failed ";
93  return objectKey;
94  } else if ((objectKeyResults.numberRows() != 1)) {
95  edm::LogError("L1-O2O") << "Problem with key for record L1GtPrescaleFactorsTechTrigRcd: "
96  << (objectKeyResults.numberRows()) << " rows were returned";
97  return objectKey;
98  }
99 
100  objectKeyResults.fillVariable(objectKey);
101 
102  //
103  if (edm::isDebugEnabled()) {
104  LogTrace("L1GtRsObjectKeysOnlineProd") << "\nThe following GT_RUN_SETTINGS_FK key "
105  << "was found for L1GtPrescaleFactorsTechTrigRcd: \n " << objectKey
106  << "\nfor partition " << m_partitionNumber << "\n"
107  << std::endl;
108  }
109 
110  return objectKey;
111 }
bool isDebugEnabled()
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:274
const QueryResults singleAttribute(const T &data) const
Definition: OMDSReader.h:259
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="")
Definition: OMDSReader.h:194
#define LogTrace(id)
std::string L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskAlgoTrig ( const std::string &  gtSchema)
private

Definition at line 113 of file L1GtRsObjectKeysOnlineProd.cc.

References l1t::OMDSReader::basicQuery(), l1t::OMDSReader::basicQueryGenericKey(), l1t::OMDSReader::QueryResults::fillVariable(), edm::isDebugEnabled(), LogTrace, L1ObjectKeysOnlineProdBase::m_omdsReader, m_partitionNumber, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), l1t::OMDSReader::singleAttribute(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by fillObjectKeys().

113  {
114  std::string objectKey;
115 
116  // SELECT FINOR_ALGO_FK FROM CMS_GT.GT_RUN_SETTINGS
117  // WHERE GT_RUN_SETTINGS.ID = (
118  // SELECT GT_RUN_SETTINGS_FK FROM CMS_GT.GT_RUN_SETTINGS_KEY_CURRENT
119  // WHERE GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER = m_partitionNumber)
120  l1t::OMDSReader::QueryResults objectKeyResults =
121  m_omdsReader.basicQuery("FINOR_ALGO_FK",
122  gtSchema,
123  "GT_RUN_SETTINGS",
124  "GT_RUN_SETTINGS.ID",
125  m_omdsReader.basicQueryGenericKey<int>("GT_RUN_SETTINGS_FK",
126  gtSchema,
127  "GT_RUN_SETTINGS_KEY_CURRENT",
128  "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
130  ""));
131 
132  // check if query was successful
133  if (objectKeyResults.queryFailed()) {
134  edm::LogError("L1-O2O") << "Problem with key for record L1GtTriggerMaskAlgoTrigRcd: query failed ";
135  return objectKey;
136  } else if ((objectKeyResults.numberRows() != 1)) {
137  edm::LogError("L1-O2O") << "Problem with key for record L1GtTriggerMaskAlgoTrigRcd: "
138  << (objectKeyResults.numberRows()) << " rows were returned";
139  return objectKey;
140  }
141 
142  objectKeyResults.fillVariable(objectKey);
143 
144  //
145  if (edm::isDebugEnabled()) {
146  LogTrace("L1GtRsObjectKeysOnlineProd") << "\nThe following key was found for L1GtTriggerMaskAlgoTrigRcd: \n "
147  << objectKey << "\nfor partition " << m_partitionNumber << "\n"
148  << std::endl;
149  }
150 
151  return objectKey;
152 }
bool isDebugEnabled()
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:274
const QueryResults singleAttribute(const T &data) const
Definition: OMDSReader.h:259
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="")
Definition: OMDSReader.h:194
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="")
Definition: OMDSReader.cc:75
#define LogTrace(id)
std::string L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskTechTrig ( const std::string &  gtSchema)
private

Definition at line 154 of file L1GtRsObjectKeysOnlineProd.cc.

References l1t::OMDSReader::basicQuery(), l1t::OMDSReader::basicQueryGenericKey(), l1t::OMDSReader::QueryResults::fillVariable(), edm::isDebugEnabled(), LogTrace, L1ObjectKeysOnlineProdBase::m_omdsReader, m_partitionNumber, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), l1t::OMDSReader::singleAttribute(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by fillObjectKeys().

154  {
155  std::string objectKey;
156 
157  // SELECT FINOR_TT_FK FROM CMS_GT.GT_RUN_SETTINGS
158  // WHERE GT_RUN_SETTINGS.ID = (
159  // SELECT GT_RUN_SETTINGS_FK FROM CMS_GT.GT_RUN_SETTINGS_KEY_CURRENT
160  // WHERE GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER = m_partitionNumber)
161  l1t::OMDSReader::QueryResults objectKeyResults =
162  m_omdsReader.basicQuery("FINOR_TT_FK",
163  gtSchema,
164  "GT_RUN_SETTINGS",
165  "GT_RUN_SETTINGS.ID",
166  m_omdsReader.basicQueryGenericKey<int>("GT_RUN_SETTINGS_FK",
167  gtSchema,
168  "GT_RUN_SETTINGS_KEY_CURRENT",
169  "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
171  ""));
172 
173  // check if query was successful
174  if (objectKeyResults.queryFailed()) {
175  edm::LogError("L1-O2O") << "Problem with key for record L1GtTriggerMaskTechTrigRcd: query failed ";
176  return objectKey;
177  } else if ((objectKeyResults.numberRows() != 1)) {
178  edm::LogError("L1-O2O") << "Problem with key for record L1GtTriggerMaskTechTrigRcd: "
179  << (objectKeyResults.numberRows()) << " rows were returned";
180  return objectKey;
181  }
182 
183  objectKeyResults.fillVariable(objectKey);
184 
185  //
186  if (edm::isDebugEnabled()) {
187  LogTrace("L1GtRsObjectKeysOnlineProd") << "\nThe following key was found for L1GtTriggerMaskTechTrigRcd: \n "
188  << objectKey << "\nfor partition " << m_partitionNumber << "\n"
189  << std::endl;
190  }
191 
192  return objectKey;
193 }
bool isDebugEnabled()
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:274
const QueryResults singleAttribute(const T &data) const
Definition: OMDSReader.h:259
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="")
Definition: OMDSReader.h:194
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="")
Definition: OMDSReader.cc:75
#define LogTrace(id)
std::string L1GtRsObjectKeysOnlineProd::keyL1GtTriggerMaskVetoTechTrig ( const std::string &  gtSchema)
private

Definition at line 195 of file L1GtRsObjectKeysOnlineProd.cc.

References l1t::OMDSReader::basicQuery(), l1t::OMDSReader::basicQueryGenericKey(), l1t::OMDSReader::QueryResults::fillVariable(), edm::isDebugEnabled(), LogTrace, L1ObjectKeysOnlineProdBase::m_omdsReader, m_partitionNumber, l1t::OMDSReader::QueryResults::numberRows(), l1t::OMDSReader::QueryResults::queryFailed(), l1t::OMDSReader::singleAttribute(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by fillObjectKeys().

195  {
196  std::string objectKey;
197 
198  // SELECT VETO_TT_FK FROM CMS_GT.GT_RUN_SETTINGS
199  // WHERE GT_RUN_SETTINGS.ID = (
200  // SELECT GT_RUN_SETTINGS_FK FROM CMS_GT.GT_RUN_SETTINGS_KEY_CURRENT
201  // WHERE GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER = m_partitionNumber)
202  l1t::OMDSReader::QueryResults objectKeyResults =
203  m_omdsReader.basicQuery("VETO_TT_FK",
204  gtSchema,
205  "GT_RUN_SETTINGS",
206  "GT_RUN_SETTINGS.ID",
207  m_omdsReader.basicQueryGenericKey<int>("GT_RUN_SETTINGS_FK",
208  gtSchema,
209  "GT_RUN_SETTINGS_KEY_CURRENT",
210  "GT_RUN_SETTINGS_KEY_CURRENT.GT_PARTITION_NUMBER",
212  ""));
213 
214  // check if query was successful
215  if (objectKeyResults.queryFailed()) {
216  edm::LogError("L1-O2O") << "Problem with key for record L1GtTriggerMaskVetoTechTrigRcd: query failed ";
217  return objectKey;
218  } else if ((objectKeyResults.numberRows() != 1)) {
219  edm::LogError("L1-O2O") << "Problem with key for record L1GtTriggerMaskVetoTechTrigRcd: "
220  << (objectKeyResults.numberRows()) << " rows were returned";
221  return objectKey;
222  }
223 
224  objectKeyResults.fillVariable(objectKey);
225 
226  //
227  if (edm::isDebugEnabled()) {
228  LogTrace("L1GtRsObjectKeysOnlineProd") << "\nThe following key was found for L1GtTriggerMaskVetoTechTrigRcd: \n "
229  << objectKey << "\nfor partition " << m_partitionNumber << "\n"
230  << std::endl;
231  }
232 
233  return objectKey;
234 }
bool isDebugEnabled()
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:274
const QueryResults singleAttribute(const T &data) const
Definition: OMDSReader.h:259
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="")
Definition: OMDSReader.h:194
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="")
Definition: OMDSReader.cc:75
#define LogTrace(id)

Member Data Documentation

bool L1GtRsObjectKeysOnlineProd::m_enableL1GtPrescaleFactorsAlgoTrig
private

enable key search for each record

Definition at line 48 of file L1GtRsObjectKeysOnlineProd.h.

Referenced by fillObjectKeys().

bool L1GtRsObjectKeysOnlineProd::m_enableL1GtPrescaleFactorsTechTrig
private

Definition at line 49 of file L1GtRsObjectKeysOnlineProd.h.

Referenced by fillObjectKeys().

bool L1GtRsObjectKeysOnlineProd::m_enableL1GtTriggerMaskAlgoTrig
private

Definition at line 50 of file L1GtRsObjectKeysOnlineProd.h.

Referenced by fillObjectKeys().

bool L1GtRsObjectKeysOnlineProd::m_enableL1GtTriggerMaskTechTrig
private

Definition at line 51 of file L1GtRsObjectKeysOnlineProd.h.

Referenced by fillObjectKeys().

bool L1GtRsObjectKeysOnlineProd::m_enableL1GtTriggerMaskVetoTechTrig
private

Definition at line 52 of file L1GtRsObjectKeysOnlineProd.h.

Referenced by fillObjectKeys().

int L1GtRsObjectKeysOnlineProd::m_partitionNumber
private