5 boost::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++) {
20 if (iSP<10) sprintf(spName,
"0%d",iSP);
21 else sprintf(spName,
"%d",iSP);
28 std::vector< std::string > columns ;
29 columns.push_back(
"STATIC_CONFIG" ) ;
30 columns.push_back(
"ETA_CONFIG" ) ;
31 columns.push_back(
"FIRMWARE" ) ;
38 "CSCTF_SP_CONF.SP_KEY",
44 edm::LogError(
"L1-O2O" ) <<
"Problem with L1CSCTFParameters key." ;
55 LogDebug(
"L1-O2O: CSCTFConfigOnlineProd:" ) <<
"conf_stat queried: " << conf_stat
56 <<
"conf_eta queried:" << conf_eta
57 <<
"conf_firmware queried:" << conf_firmware;
59 for(
size_t pos=conf_stat.find(
"\\n");
pos!=std::string::npos;
pos=conf_stat.find(
"\\n",
pos))
62 conf_stat[
pos+1]=
'\n';
65 for(
size_t pos=conf_eta.find(
"\\n");
pos!=std::string::npos;
pos=conf_eta.find(
"\\n",
pos))
72 for(
size_t pos=conf_firmware.find(
"\\n");
pos!=std::string::npos;
pos=conf_firmware.find(
"\\n",
pos))
74 conf_firmware[
pos]=
' ';
75 conf_firmware[
pos+1]=
'\n';
78 LogDebug(
"L1-O2O: CSCTFConfigOnlineProd" ) <<
"\nSP KEY: " << spkey
79 <<
"\n\nSTATIC CONFIGURATION:\n" << conf_stat
80 <<
"\nDAT_ETA CONFIGURATION:\n" << conf_eta
81 <<
"\nFIRMWARE VERSIONS:\n" << conf_firmware;
91 std::stringstream
conf(conf_firmware);
94 conf.getline(buff,1024);
95 std::stringstream
line(buff);
103 pos=writeValue_.find(
'/');
106 day.push_back(writeValue_[pos-2]);
107 day.push_back(writeValue_[pos-1]);
110 month.push_back(writeValue_[pos+1]);
111 month.push_back(writeValue_[pos+2]);
114 year.push_back(writeValue_[pos+4]);
115 year.push_back(writeValue_[pos+5]);
130 conf_firmware_sp+=register_+
" "+chip_+
" "+muon_+
" "+date+
"\n";
133 edm::LogInfo(
"L1-O2O: CSCTFConfigOnlineProd" ) <<
"\nSP KEY: " << spkey
134 <<
"\n\nSTATIC CONFIGURATION:\n" << conf_stat
135 <<
"\nDAT_ETA CONFIGURATION:\n" << conf_eta
136 <<
"\nFIRMWARE VERSIONS:\n" << conf_firmware_sp;
138 std::string conf_read=conf_eta+conf_stat+conf_firmware_sp;
140 csctfreg[iSP-1]=conf_read;
virtual boost::shared_ptr< L1MuCSCTFConfiguration > newObject(const std::string &objectKey)
bool fillVariable(const std::string &columnName, T &outputVariable) const
const QueryResults singleAttribute(const T &data) const
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="") const
l1t::OMDSReader m_omdsReader