|
static void | prevalidate (ConfigurationDescriptions &) |
|
using | EventSetupRecordKey = eventsetup::EventSetupRecordKey |
|
using | KeyedProxiesVector = std::vector< std::pair< DataKey, std::shared_ptr< DataProxy > >> |
|
bool | getObjectKey (const L1MuCSCTFConfigurationRcd &record, std::string &objectKey) |
|
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 > |
auto | setWhatProduced (T *iThis, TReturn(T ::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel={}) |
|
template<typename TFunc > |
auto | setWhatProduced (TFunc &&func, const es::Label &iLabel={}) |
|
template<typename TReturn , typename TRecord , typename TFunc , typename TDecorator > |
ESConsumesCollectorT< TRecord > | setWhatProduced (TFunc &&func, TDecorator &&iDec, const es::Label &iLabel={}) |
|
void | usesResources (std::vector< std::string > const &) |
|
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 |
|
template<class T > |
void | usingRecord () |
|
void | usingRecordWithKey (const EventSetupRecordKey &key) |
|
std::optional< edm::ESConsumesCollectorT< L1MuCSCTFConfigurationRcd > > | m_consumesCollector |
|
bool | m_copyFromCondDB |
|
cond::persistency::Session | m_dbSession |
|
bool | m_forceGeneration |
|
l1t::OMDSReader | m_omdsReader |
|
Definition at line 5 of file CSCTFConfigOnlineProd.h.
Implements L1ConfigOnlineProdBase< L1MuCSCTFConfigurationRcd, L1MuCSCTFConfiguration >.
Definition at line 5 of file CSCTFConfigOnlineProd.cc.
References l1t::OMDSReader::basicQuery(), mps_check::columns, util.getRunInfo::day(), mps_splice::line, LogDebug, L1ConfigOnlineProdBase< L1MuCSCTFConfigurationRcd, L1MuCSCTFConfiguration >::m_omdsReader, mysort::results, l1t::OMDSReader::singleAttribute(), AlCaHLTBitMon_QueryRunRegistry::string, cond::impl::to_string(), and HLT_2023v12_cff::year.
6 edm::LogInfo(
"L1-O2O: CSCTFConfigOnlineProd") <<
"Producing " 7 <<
"L1MuCSCTFConfiguration " 8 <<
"with key CSCTF_KEY=" << objectKey;
13 for (
int iSP = 1; iSP < 13; iSP++) {
20 std::vector<std::string>
columns;
21 columns.push_back(
"STATIC_CONFIG");
22 columns.push_back(
"ETA_CONFIG");
31 edm::LogError(
"L1-O2O") <<
"Problem with L1CSCTFParameters key.";
33 return std::make_unique<L1MuCSCTFConfiguration>();
37 results.fillVariable(
"STATIC_CONFIG", conf_stat);
38 results.fillVariable(
"ETA_CONFIG", conf_eta);
39 results.fillVariable(
"FIRMWARE", conf_firmware);
41 LogDebug(
"L1-O2O: CSCTFConfigOnlineProd:") <<
"conf_stat queried: " << conf_stat <<
"conf_eta queried:" << conf_eta
42 <<
"conf_firmware queried:" << conf_firmware;
44 for (
size_t pos = conf_stat.find(
"\\n");
pos != std::string::npos;
pos = conf_stat.find(
"\\n",
pos)) {
46 conf_stat[
pos + 1] =
'\n';
49 for (
size_t pos = conf_eta.find(
"\\n");
pos != std::string::npos;
pos = conf_eta.find(
"\\n",
pos)) {
51 conf_eta[
pos + 1] =
'\n';
54 for (
size_t pos = conf_firmware.find(
"\\n");
pos != std::string::npos;
pos = conf_firmware.find(
"\\n",
pos)) {
55 conf_firmware[
pos] =
' ';
56 conf_firmware[
pos + 1] =
'\n';
59 LogDebug(
"L1-O2O: CSCTFConfigOnlineProd") <<
"\nSP KEY: " << spkey <<
"\n\nSTATIC CONFIGURATION:\n" 60 << conf_stat <<
"\nDAT_ETA CONFIGURATION:\n" 61 << conf_eta <<
"\nFIRMWARE VERSIONS:\n" 72 std::stringstream conf(conf_firmware);
75 conf.getline(buff, 1024);
76 std::stringstream
line(buff);
87 pos = writeValue_.find(
'/');
90 day.push_back(writeValue_[
pos - 2]);
91 day.push_back(writeValue_[
pos - 1]);
94 month.push_back(writeValue_[
pos + 1]);
95 month.push_back(writeValue_[
pos + 2]);
98 year.push_back(writeValue_[
pos + 4]);
99 year.push_back(writeValue_[
pos + 5]);
114 conf_firmware_sp += register_ +
" " + chip_ +
" " + muon_ +
" " + date +
"\n";
117 edm::LogInfo(
"L1-O2O: CSCTFConfigOnlineProd") <<
"\nSP KEY: " << spkey <<
"\n\nSTATIC CONFIGURATION:\n" 118 << conf_stat <<
"\nDAT_ETA CONFIGURATION:\n" 119 << conf_eta <<
"\nFIRMWARE VERSIONS:\n" 122 std::string conf_read = conf_eta + conf_stat + conf_firmware_sp;
124 csctfreg[iSP - 1] = conf_read;
128 return std::make_unique<L1MuCSCTFConfiguration>(csctfreg);
const QueryResults singleAttribute(const T &data) const
std::string to_string(const V &value)
Log< level::Error, false > LogError
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="")
l1t::OMDSReader m_omdsReader
Log< level::Info, false > LogInfo