CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Static Private Member Functions
L1GtPsbSetupConfigOnlineProd Class Reference

#include <L1GtPsbSetupConfigOnlineProd.h>

Inheritance diagram for L1GtPsbSetupConfigOnlineProd:
L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup > edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Member Functions

 L1GtPsbSetupConfigOnlineProd (const edm::ParameterSet &)
 constructor More...
 
std::unique_ptr< L1GtPsbSetupnewObject (const std::string &objectKey) override
 public methods More...
 
 ~L1GtPsbSetupConfigOnlineProd () override
 destructor More...
 
- Public Member Functions inherited from L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >
 L1ConfigOnlineProdBase (const edm::ParameterSet &)
 
virtual std::unique_ptr< L1GtPsbSetupproduce (const L1GtPsbSetupRcd &iRecord)
 
 ~L1ConfigOnlineProdBase () override
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
 ESProducer (const ESProducer &)=delete
 
ESProxyIndex const * getTokenIndices (unsigned int iIndex) const
 
ESRecordIndex const * getTokenRecordIndices (unsigned int iIndex) const
 
bool hasMayConsumes () const noexcept
 
size_t numberOfTokenIndices (unsigned int iIndex) const
 
ESProducer const & operator= (const ESProducer &)=delete
 
SerialTaskQueueChainqueue ()
 
template<typename Record >
std::optional< std::vector< ESProxyIndex > > updateFromMayConsumes (unsigned int iIndex, const Record &iRecord) const
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &) final
 
 ~ESProducer () noexcept(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

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. More...
 
void addPsbFromDb (const std::string &psbKey, std::vector< L1GtPsbConfig > &psbSetup)
 Creates a new PSB object from a GT_PSB_SETUP entry and adds. More...
 
bool checkOneLineResult (const l1t::OMDSReader::QueryResults &result, const std::string &queryDescription) const
 Ensures that result contains exactly one line, returning false otherwise. More...
 
std::vector< bool > extractBoolVector (const l1t::OMDSReader::QueryResults &query, const std::string &prefix, const std::string &suffix, unsigned nColumns) const
 
template<class T >
void getRequiredValue (const l1t::OMDSReader::QueryResults &result, const std::string &colName, T &value) const
 
std::string numberedColumnName (const std::string &prefix, unsigned number) const
 Special case for empty suffix. More...
 
std::string numberedColumnName (const std::string &prefix, unsigned number, const std::string &suffix) const
 Concatenates prefix, number and suffix into a string. More...
 
unsigned numberFromString (const std::string &aString) const
 

Static Private Member Functions

static bool notPsbColumnName (const std::string &columnName)
 

Additional Inherited Members

- 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 L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >
bool getObjectKey (const L1GtPsbSetupRcd &record, std::string &objectKey)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
auto setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
auto setWhatProduced (T *iThis, const es::Label &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={})
 
void usesResources (std::vector< std::string > const &)
 
- 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 L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >
bool m_copyFromCondDB
 
cond::persistency::Session m_dbSession
 
bool m_forceGeneration
 
l1t::OMDSReader m_omdsReader
 

Detailed Description

Description: online producer for L1GtPsbSetup.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna

Description: online producer for L1GtPsbSetup.

Implementation: <TODO: enter implementation details>

Author
: Vasile Mihai Ghete - HEPHY Vienna
: Thomas Themel - HEPHY Vienna

Definition at line 35 of file L1GtPsbSetupConfigOnlineProd.h.

Constructor & Destructor Documentation

◆ L1GtPsbSetupConfigOnlineProd()

L1GtPsbSetupConfigOnlineProd::L1GtPsbSetupConfigOnlineProd ( const edm::ParameterSet parSet)

constructor

Definition at line 27 of file L1GtPsbSetupConfigOnlineProd.cc.

29  // empty
30 }

◆ ~L1GtPsbSetupConfigOnlineProd()

L1GtPsbSetupConfigOnlineProd::~L1GtPsbSetupConfigOnlineProd ( )
override

destructor

Definition at line 33 of file L1GtPsbSetupConfigOnlineProd.cc.

33  {
34  // empty
35 }

Member Function Documentation

◆ addDefaultPsb()

void L1GtPsbSetupConfigOnlineProd::addDefaultPsb ( const std::string &  psbColumn,
std::vector< L1GtPsbConfig > &  psbSetup 
) const
private

Creates a default valued PSB from an empty foreign key in the GT_SETUP table.

Definition at line 198 of file L1GtPsbSetupConfigOnlineProd.cc.

199  {
200  // deduce the assigned board from the column name
201  unsigned boardSlot = numberFromString(psbColumn);
202 
203  // create a default PsbConfig with the appropriate board slot and all links disabled
205  static std::vector<bool> allFalseLvds(L1GtPsbConfig::PsbNumberLvdsGroups, false);
206  static std::vector<bool> allFalseSerLink(L1GtPsbConfig::PsbSerLinkNumberChannels, false);
207 
208  toAdd.setGtBoardSlot(boardSlot);
209  toAdd.setGtPsbCh0SendLvds(false);
210  toAdd.setGtPsbCh1SendLvds(false);
211  toAdd.setGtPsbEnableRecLvds(allFalseLvds);
212  toAdd.setGtPsbEnableRecSerLink(allFalseSerLink);
213 
214  psbSetup.push_back(toAdd);
215 }

References numberFromString(), L1GtPsbConfig::PsbNumberLvdsGroups, L1GtPsbConfig::PsbSerLinkNumberChannels, and HLT_FULL_cff::toAdd.

Referenced by newObject().

◆ addPsbFromDb()

void L1GtPsbSetupConfigOnlineProd::addPsbFromDb ( const std::string &  psbKey,
std::vector< L1GtPsbConfig > &  psbSetup 
)
private

Creates a new PSB object from a GT_PSB_SETUP entry and adds.

Definition at line 101 of file L1GtPsbSetupConfigOnlineProd.cc.

101  {
102  // SQL> describe gt_psb_setup;
103  // (heavily pruned to just the stuff we need to set up a GtPsbConfig)
104  // Name Null? Type
105  // ----------------------------------------- -------- ----------------------------
106  // ID NOT NULL VARCHAR2(256)
107  // BOARD_SLOT NUMBER(3)
108  // CH0_SEND_LVDS_NOT_DS92LV16 NUMBER(1)
109  // CH1_SEND_LVDS_NOT_DS92LV16 NUMBER(1)
110  // ENABLE_TT_LVDS_0 NUMBER(1)
111  // ENABLE_TT_LVDS_1 NUMBER(1)
112  // ENABLE_TT_LVDS_2 NUMBER(1)
113  // ENABLE_TT_LVDS_3 NUMBER(1)
114  // ENABLE_TT_LVDS_4 NUMBER(1)
115  // ENABLE_TT_LVDS_5 NUMBER(1)
116  // ENABLE_TT_LVDS_6 NUMBER(1)
117  // ENABLE_TT_LVDS_7 NUMBER(1)
118  // ENABLE_TT_LVDS_8 NUMBER(1)
119  // ENABLE_TT_LVDS_9 NUMBER(1)
120  // ENABLE_TT_LVDS_10 NUMBER(1)
121  // ENABLE_TT_LVDS_11 NUMBER(1)
122  // ENABLE_TT_LVDS_12 NUMBER(1)
123  // ENABLE_TT_LVDS_13 NUMBER(1)
124  // ENABLE_TT_LVDS_14 NUMBER(1)
125  // ENABLE_TT_LVDS_15 NUMBER(1)
126  // SERLINK_CH0_REC_ENABLE NUMBER(1)
127  // SERLINK_CH1_REC_ENABLE NUMBER(1)
128  // SERLINK_CH2_REC_ENABLE NUMBER(1)
129  // SERLINK_CH3_REC_ENABLE NUMBER(1)
130  // SERLINK_CH4_REC_ENABLE NUMBER(1)
131  // SERLINK_CH5_REC_ENABLE NUMBER(1)
132  // SERLINK_CH6_REC_ENABLE NUMBER(1)
133  // SERLINK_CH7_REC_ENABLE NUMBER(1)
134 
135  const std::string gtSchema = "CMS_GT";
136 
137  // setup up columns to query
138  std::vector<std::string> columnNames;
139 
140  static const std::string lvdPrefix = "ENABLE_TT_LVDS_";
141  static const std::string lvdSuffix = "";
142  static const std::string serPrefix = "SERLINK_CH";
143  static const std::string serSuffix = "_REC_ENABLE";
144  static const std::string boardSlotColumn = "BOARD_SLOT";
145  static const std::string ch0FormatColumn = "CH0_SEND_LVDS_NOT_DS92LV16";
146  static const std::string ch1FormatColumn = "CH1_SEND_LVDS_NOT_DS92LV16";
147 
148  columnNames.push_back(boardSlotColumn);
149  columnNames.push_back(ch0FormatColumn);
150  columnNames.push_back(ch1FormatColumn);
151 
152  for (unsigned i = 0; i < (unsigned)L1GtPsbConfig::PsbNumberLvdsGroups; ++i) {
153  columnNames.push_back(numberedColumnName(lvdPrefix, i, lvdSuffix));
154  }
155 
156  for (unsigned i = 0; i < (unsigned)L1GtPsbConfig::PsbSerLinkNumberChannels; ++i) {
157  columnNames.push_back(numberedColumnName(serPrefix, i, serSuffix));
158  }
159 
160  // execute database query
162  columnNames, gtSchema, "GT_PSB_SETUP", "GT_PSB_SETUP.ID", m_omdsReader.singleAttribute(psbKey));
163 
164  // check if query was successful and we get only one line
165  if (!checkOneLineResult(psbQuery, "GT_PSB_SETUP query for PSB keys with ID = " + psbKey)) {
166  edm::LogError("L1-O2O") << "Problem to get setup for PSB keys with ID = " << psbKey;
167  return; // FIXME: change method to bool?
168  }
169 
170  // extract values
171  int16_t boardSlot;
172 
173  getRequiredValue(psbQuery, boardSlotColumn, boardSlot);
174 
175  bool sendLvds0, sendLvds1;
176 
177  getRequiredValue(psbQuery, ch0FormatColumn, sendLvds0);
178  getRequiredValue(psbQuery, ch1FormatColumn, sendLvds1);
179 
180  const std::vector<bool>& enableRecLvds =
181  extractBoolVector(psbQuery, lvdPrefix, lvdSuffix, L1GtPsbConfig::PsbNumberLvdsGroups);
182  const std::vector<bool>& serLinkRecEnable =
183  extractBoolVector(psbQuery, serPrefix, serSuffix, L1GtPsbConfig::PsbSerLinkNumberChannels);
184 
185  // create new PSB object with db values
187 
188  toAdd.setGtBoardSlot(boardSlot);
189  toAdd.setGtPsbCh0SendLvds(sendLvds0);
190  toAdd.setGtPsbCh1SendLvds(sendLvds1);
191  toAdd.setGtPsbEnableRecLvds(enableRecLvds);
192  toAdd.setGtPsbEnableRecSerLink(serLinkRecEnable);
193 
194  // add to vector
195  psbSetup.push_back(toAdd);
196 }

References l1t::OMDSReader::basicQuery(), checkOneLineResult(), extractBoolVector(), getRequiredValue(), mps_fire::i, L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >::m_omdsReader, numberedColumnName(), L1GtPsbConfig::PsbNumberLvdsGroups, L1GtPsbConfig::PsbSerLinkNumberChannels, l1t::OMDSReader::singleAttribute(), AlCaHLTBitMon_QueryRunRegistry::string, and HLT_FULL_cff::toAdd.

Referenced by newObject().

◆ checkOneLineResult()

bool L1GtPsbSetupConfigOnlineProd::checkOneLineResult ( const l1t::OMDSReader::QueryResults result,
const std::string &  queryDescription 
) const
private

Ensures that result contains exactly one line, returning false otherwise.

Definition at line 232 of file L1GtPsbSetupConfigOnlineProd.cc.

233  {
234  // check if query was successful
235  if (result.queryFailed()) {
236  edm::LogError("L1-O2O") << "\n " << queryDescription + " failed: no match found!";
237  return false;
238 
239  } else if (result.numberRows() != 1) {
240  edm::LogError("L1-O2O") << "\nProblem with " << queryDescription << ": " << (result.numberRows())
241  << " rows were returned, expected 1.";
242  return false;
243  }
244 
245  return true;
246 }

References mps_fire::result.

Referenced by addPsbFromDb(), and newObject().

◆ extractBoolVector()

std::vector< bool > L1GtPsbSetupConfigOnlineProd::extractBoolVector ( const l1t::OMDSReader::QueryResults query,
const std::string &  prefix,
const std::string &  suffix,
unsigned  nColumns 
) const
private

A function to extract a vector of booleans from the GT database format (NUMBER(1) columns labeled prefix<nn>suffix).

Definition at line 217 of file L1GtPsbSetupConfigOnlineProd.cc.

220  {
221  std::vector<bool> result(nColumns);
222 
223  for (unsigned i = 0; i < nColumns; ++i) {
224  bool dbValue;
226  result[i] = dbValue;
227  }
228 
229  return result;
230 }

References getRequiredValue(), mps_fire::i, numberedColumnName(), hcallasereventfilter2012_cfi::prefix, mps_fire::result, and createPayload::suffix.

Referenced by addPsbFromDb().

◆ getRequiredValue()

template<class T >
void L1GtPsbSetupConfigOnlineProd::getRequiredValue ( const l1t::OMDSReader::QueryResults result,
const std::string &  colName,
T value 
) const
inlineprivate

A wrapper for OMDSReader::QueryResults::fillVariable that throws an exception when the field it accesses was NULL.

Definition at line 63 of file L1GtPsbSetupConfigOnlineProd.h.

63  {
64  if (!result.fillVariable(colName, value)) {
65  throw cms::Exception("NullValue") << "Required field " << colName << " is NULL in database!";
66  }
67  }

References Exception, and mps_fire::result.

Referenced by addPsbFromDb(), and extractBoolVector().

◆ newObject()

std::unique_ptr< L1GtPsbSetup > L1GtPsbSetupConfigOnlineProd::newObject ( const std::string &  objectKey)
overridevirtual

public methods

Implements L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >.

Definition at line 39 of file L1GtPsbSetupConfigOnlineProd.cc.

39  {
40  auto pL1GtPsbSetup = std::make_unique<L1GtPsbSetup>();
41 
42  const std::string gtSchema = "CMS_GT";
43 
44  // the setup's contents, to be filled from database
45  std::vector<L1GtPsbConfig> psbConfigurations;
46 
47  // SELECT PSB_SLOT_*_SETUP_FK FROM CMS_GT.GT_SETUP WHERE GT_SETUP.ID = MyKey
48  std::vector<std::string> psbColumns = m_omdsReader.columnNames(gtSchema, "GT_SETUP");
49 
50  std::vector<std::string>::iterator newEnd = std::remove_if(psbColumns.begin(), psbColumns.end(), &notPsbColumnName);
51  psbColumns.erase(newEnd, psbColumns.end());
52 
53  // select * from CMS_GT.GT_SETUP where GT_SETUP.ID = objectKey
55  m_omdsReader.basicQuery(psbColumns, gtSchema, "GT_SETUP", "GT_SETUP.ID", m_omdsReader.singleAttribute(objectKey));
56 
57  // check if query was successful and produced one line only
58  if (!checkOneLineResult(psbKeys, "GT_SETUP query for PSB keys with ID = " + objectKey)) {
59  edm::LogError("L1-O2O") << "Problem to get content of CMS_GT.GT_SETUP for GT_SETUP.ID key: " << objectKey;
60  return pL1GtPsbSetup;
61  }
62 
63  // fill the psbConfigurations vector
64  for (std::vector<std::string>::const_iterator it = psbColumns.begin(); it != psbColumns.end(); ++it) {
65  std::string psbKey;
66  psbKeys.fillVariable(*it, psbKey);
67 
68  if (psbKey.empty()) {
69  addDefaultPsb(*it, psbConfigurations);
70  } else {
71  addPsbFromDb(psbKey, psbConfigurations);
72  }
73  }
74 
75  // assign to the result object
76  pL1GtPsbSetup->setGtPsbSetup(psbConfigurations);
77 
78  if (edm::isDebugEnabled()) {
79  LogTrace("L1-O2O") << (*pL1GtPsbSetup) << std::endl;
80  }
81 
82  return pL1GtPsbSetup;
83 }

References addDefaultPsb(), addPsbFromDb(), l1t::OMDSReader::basicQuery(), checkOneLineResult(), l1t::OMDSReader::columnNames(), l1t::OMDSReader::QueryResults::fillVariable(), edm::isDebugEnabled(), LogTrace, L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >::m_omdsReader, notPsbColumnName(), l1t::OMDSReader::singleAttribute(), and AlCaHLTBitMon_QueryRunRegistry::string.

◆ notPsbColumnName()

bool L1GtPsbSetupConfigOnlineProd::notPsbColumnName ( const std::string &  columnName)
staticprivate

A predicate to filter the column names of GT_SETUP for those that contain foreign keys to GT_PSB_SETUP.

Definition at line 87 of file L1GtPsbSetupConfigOnlineProd.cc.

87  {
88  static std::string startMatch("PSB_SLOT_");
89  static std::string endMatch("_SETUP_FK");
90 
91  unsigned len = columnName.size();
92 
93  // it's not a PSB column name if it's too short
94  return len <= (startMatch.size() + endMatch.size()) ||
95  // or the start doesn't match
96  columnName.substr(0, startMatch.size()) != startMatch ||
97  // or the end doesn't match
98  columnName.substr(len - endMatch.size(), endMatch.size()) != endMatch;
99 }

References AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by newObject().

◆ numberedColumnName() [1/2]

std::string L1GtPsbSetupConfigOnlineProd::numberedColumnName ( const std::string &  prefix,
unsigned  number 
) const
private

Special case for empty suffix.

Definition at line 248 of file L1GtPsbSetupConfigOnlineProd.cc.

248  {
249  return numberedColumnName(prefix, number, "");
250 }

References contentValuesFiles::number, numberedColumnName(), and hcallasereventfilter2012_cfi::prefix.

◆ numberedColumnName() [2/2]

std::string L1GtPsbSetupConfigOnlineProd::numberedColumnName ( const std::string &  prefix,
unsigned  number,
const std::string &  suffix 
) const
private

Concatenates prefix, number and suffix into a string.

Definition at line 252 of file L1GtPsbSetupConfigOnlineProd.cc.

254  {
255  std::ostringstream colName;
256  colName << prefix << number << suffix;
257 
258  return colName.str();
259 }

References contentValuesFiles::number, hcallasereventfilter2012_cfi::prefix, and createPayload::suffix.

Referenced by addPsbFromDb(), extractBoolVector(), and numberedColumnName().

◆ numberFromString()

unsigned L1GtPsbSetupConfigOnlineProd::numberFromString ( const std::string &  aString) const
private

Definition at line 261 of file L1GtPsbSetupConfigOnlineProd.cc.

261  {
262  std::istringstream stream(aString);
263  unsigned result;
264 
265  for (unsigned i = 0; i < aString.size(); ++i) {
266  if (stream >> result) {
267  // we got a value
268  return result;
269  } else {
270  // clear error flags from failed >>
271  stream.clear();
272  // skip another character
273  stream.seekg(i);
274  }
275  }
276 
277  // throw here
278  throw cms::Exception("NumberNotFound") << "Failed to extract numeric value from " << aString;
279 }

References Exception, mps_fire::i, mps_fire::result, and cms::cuda::stream.

Referenced by addDefaultPsb().

l1t::OMDSReader::QueryResults
Definition: OMDSReader.h:49
L1GtPsbSetupConfigOnlineProd::notPsbColumnName
static bool notPsbColumnName(const std::string &columnName)
Definition: L1GtPsbSetupConfigOnlineProd.cc:87
mps_fire.i
i
Definition: mps_fire.py:428
L1GtPsbSetupConfigOnlineProd::numberedColumnName
std::string numberedColumnName(const std::string &prefix, unsigned number, const std::string &suffix) const
Concatenates prefix, number and suffix into a string.
Definition: L1GtPsbSetupConfigOnlineProd.cc:252
L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >::m_omdsReader
l1t::OMDSReader m_omdsReader
Definition: L1ConfigOnlineProdBase.h:65
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
l1t::OMDSReader::singleAttribute
const QueryResults singleAttribute(const T &data) const
Definition: OMDSReader.h:259
L1ConfigOnlineProdBase< L1GtPsbSetupRcd, L1GtPsbSetup >
createPayload.suffix
suffix
Definition: createPayload.py:281
L1GtPsbSetupConfigOnlineProd::checkOneLineResult
bool checkOneLineResult(const l1t::OMDSReader::QueryResults &result, const std::string &queryDescription) const
Ensures that result contains exactly one line, returning false otherwise.
Definition: L1GtPsbSetupConfigOnlineProd.cc:232
L1GtPsbSetupConfigOnlineProd::addDefaultPsb
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.
Definition: L1GtPsbSetupConfigOnlineProd.cc:198
contentValuesFiles.number
number
Definition: contentValuesFiles.py:53
query
Definition: query.py:1
l1t::OMDSReader::QueryResults::fillVariable
bool fillVariable(const std::string &columnName, T &outputVariable) const
Definition: OMDSReader.h:274
l1t::OMDSReader::columnNames
std::vector< std::string > columnNames(const std::string &schemaName, const std::string &tableName)
Definition: OMDSReader.cc:138
L1GtPsbConfig::PsbNumberLvdsGroups
static const int PsbNumberLvdsGroups
number of LVDS groups per board
Definition: L1GtPsbConfig.h:60
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L1GtPsbSetupConfigOnlineProd::numberFromString
unsigned numberFromString(const std::string &aString) const
Definition: L1GtPsbSetupConfigOnlineProd.cc:261
value
Definition: value.py:1
l1t::OMDSReader::basicQuery
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
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
L1GtPsbSetupConfigOnlineProd::addPsbFromDb
void addPsbFromDb(const std::string &psbKey, std::vector< L1GtPsbConfig > &psbSetup)
Creates a new PSB object from a GT_PSB_SETUP entry and adds.
Definition: L1GtPsbSetupConfigOnlineProd.cc:101
L1GtPsbConfig
Definition: L1GtPsbConfig.h:32
L1GtPsbSetupConfigOnlineProd::extractBoolVector
std::vector< bool > extractBoolVector(const l1t::OMDSReader::QueryResults &query, const std::string &prefix, const std::string &suffix, unsigned nColumns) const
Definition: L1GtPsbSetupConfigOnlineProd.cc:217
Exception
Definition: hltDiff.cc:245
L1GtPsbConfig::PsbSerLinkNumberChannels
static const int PsbSerLinkNumberChannels
number of channels per board
Definition: L1GtPsbConfig.h:63
edm::isDebugEnabled
bool isDebugEnabled()
Definition: MessageLogger.cc:12
L1GtPsbSetupConfigOnlineProd::getRequiredValue
void getRequiredValue(const l1t::OMDSReader::QueryResults &result, const std::string &colName, T &value) const
Definition: L1GtPsbSetupConfigOnlineProd.h:63
mps_fire.result
result
Definition: mps_fire.py:311
LogTrace
#define LogTrace(id)
Definition: MessageLogger.h:234
HLT_FULL_cff.toAdd
toAdd
Definition: HLT_FULL_cff.py:52132
hcallasereventfilter2012_cfi.prefix
prefix
Definition: hcallasereventfilter2012_cfi.py:10