6 edm::LogInfo(
"L1-O2O: CSCTFConfigOnlineProd") <<
"Producing "
7 <<
"L1MuCSCTFConfiguration "
8 <<
"with key CSCTF_KEY=" << objectKey;
13 for (
int iSP = 1; iSP < 13; iSP++) {
17 spkey += std::to_string(iSP);
20 std::vector<std::string>
columns;
21 columns.push_back(
"STATIC_CONFIG");
22 columns.push_back(
"ETA_CONFIG");
23 columns.push_back(
"FIRMWARE");
31 edm::LogError(
"L1-O2O") <<
"Problem with L1CSCTFParameters key.";
33 return std::make_unique<L1MuCSCTFConfiguration>();
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);
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
std::unique_ptr< L1MuCSCTFConfiguration > newObject(const std::string &objectKey) override
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