5 std::shared_ptr< L1MuCSCTFConfiguration >
9 edm::LogInfo(
"L1-O2O: CSCTFConfigOnlineProd" ) <<
"Producing " 10 <<
"L1MuCSCTFConfiguration " 11 <<
"with key CSCTF_KEY=" 17 for (
int iSP=1;iSP<13; iSP++) {
21 spkey += std::to_string(iSP);
24 std::vector< std::string >
columns ;
25 columns.push_back(
"STATIC_CONFIG" ) ;
26 columns.push_back(
"ETA_CONFIG" ) ;
27 columns.push_back(
"FIRMWARE" ) ;
34 "CSCTF_SP_CONF.SP_KEY",
40 edm::LogError(
"L1-O2O" ) <<
"Problem with L1CSCTFParameters key." ;
42 return std::make_shared<L1MuCSCTFConfiguration>() ;
51 LogDebug(
"L1-O2O: CSCTFConfigOnlineProd:" ) <<
"conf_stat queried: " << conf_stat
52 <<
"conf_eta queried:" << conf_eta
53 <<
"conf_firmware queried:" << conf_firmware;
55 for(
size_t pos=conf_stat.find(
"\\n");
pos!=std::string::npos;
pos=conf_stat.find(
"\\n",
pos))
58 conf_stat[
pos+1]=
'\n';
61 for(
size_t pos=conf_eta.find(
"\\n");
pos!=std::string::npos;
pos=conf_eta.find(
"\\n",
pos))
68 for(
size_t pos=conf_firmware.find(
"\\n");
pos!=std::string::npos;
pos=conf_firmware.find(
"\\n",
pos))
70 conf_firmware[
pos]=
' ';
71 conf_firmware[
pos+1]=
'\n';
74 LogDebug(
"L1-O2O: CSCTFConfigOnlineProd" ) <<
"\nSP KEY: " << spkey
75 <<
"\n\nSTATIC CONFIGURATION:\n" << conf_stat
76 <<
"\nDAT_ETA CONFIGURATION:\n" << conf_eta
77 <<
"\nFIRMWARE VERSIONS:\n" << conf_firmware;
87 std::stringstream conf(conf_firmware);
90 conf.getline(buff,1024);
91 std::stringstream
line(buff);
99 pos=writeValue_.find(
'/');
102 day.push_back(writeValue_[pos-2]);
103 day.push_back(writeValue_[pos-1]);
106 month.push_back(writeValue_[pos+1]);
107 month.push_back(writeValue_[pos+2]);
110 year.push_back(writeValue_[pos+4]);
111 year.push_back(writeValue_[pos+5]);
126 conf_firmware_sp+=register_+
" "+chip_+
" "+muon_+
" "+date+
"\n";
129 edm::LogInfo(
"L1-O2O: CSCTFConfigOnlineProd" ) <<
"\nSP KEY: " << spkey
130 <<
"\n\nSTATIC CONFIGURATION:\n" << conf_stat
131 <<
"\nDAT_ETA CONFIGURATION:\n" << conf_eta
132 <<
"\nFIRMWARE VERSIONS:\n" << conf_firmware_sp;
134 std::string conf_read=conf_eta+conf_stat+conf_firmware_sp;
136 csctfreg[iSP-1]=conf_read;
140 return std::make_shared<L1MuCSCTFConfiguration>(csctfreg) ;
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
std::shared_ptr< L1MuCSCTFConfiguration > newObject(const std::string &objectKey) override
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