24 LogDebug(
"L1MuCSCTFConfiguration") <<
"SP:" <<
int(sp) << std::endl;
44 unsigned int useDT = 0;
83 std::vector<unsigned int>
etamin(8),
etamax(8), etawin(7);
153 <<
"\nCORE CONFIGURATION DEFAULT VALUES" 163 <<
"\n\nVARIOUS CONFIGURATION PARAMETERS DEFAULT VALUES" 177 <<
"\n\nDEFAULT VALUES FOR DAT_ETA" 180 <<
"\netamin[0]=" <<
etamin[0] <<
"\netamin[1]=" <<
etamin[1] <<
"\netamin[2]=" <<
etamin[2]
181 <<
"\netamin[3]=" <<
etamin[3] <<
"\netamin[4]=" <<
etamin[4] <<
"\netamin[5]=" <<
etamin[5]
182 <<
"\netamin[6]=" <<
etamin[6] <<
"\netamin[7]=" <<
etamin[7]
187 <<
"\netamax[0]=" <<
etamax[0] <<
"\netamax[1]=" <<
etamax[1] <<
"\netamax[2]=" <<
etamax[2]
188 <<
"\netamax[3]=" <<
etamax[3] <<
"\netamax[4]=" <<
etamax[4] <<
"\netamax[5]=" <<
etamax[5]
189 <<
"\netamax[6]=" <<
etamax[6] <<
"\netamax[7]=" <<
etamax[7]
194 <<
"\netawin[0]=" << etawin[0] <<
"\netawin[1]=" << etawin[1] <<
"\netawin[2]=" << etawin[2]
195 <<
"\netawin[3]=" << etawin[3] <<
"\netawin[4]=" << etawin[4] <<
"\netawin[5]=" << etawin[5]
196 <<
"\netawin[6]=" << etawin[6]
206 <<
"\n\nFIRMWARE VERSIONS" 210 std::stringstream conf(iConfig[sp]);
211 while (!conf.eof()) {
213 conf.getline(buff, 1024);
214 std::stringstream
line(buff);
225 std::getline(
line, comments_);
227 if (register_ ==
"CSR_REQ" && chip_ ==
"SP") {
228 unsigned int value = ::strtol(writeValue_.c_str(),
nullptr, 16);
239 if (register_ ==
"CSR_SCC" && chip_ ==
"SP") {
240 unsigned int value = ::strtol(writeValue_.c_str(),
nullptr, 16);
248 if (register_ ==
"CSR_LQE" && chip_ ==
"F1" && muon_ ==
"M1")
250 if (register_ ==
"CSR_LQE" && chip_ ==
"F1" && muon_ ==
"M2")
252 if (register_ ==
"CSR_LQE" && chip_ ==
"F1" && muon_ ==
"M3")
254 if (register_ ==
"CSR_LQE" && chip_ ==
"F2" && muon_ ==
"M1")
256 if (register_ ==
"CSR_LQE" && chip_ ==
"F2" && muon_ ==
"M2")
258 if (register_ ==
"CSR_LQE" && chip_ ==
"F2" && muon_ ==
"M3")
260 if (register_ ==
"CSR_LQE" && chip_ ==
"F3" && muon_ ==
"M1")
262 if (register_ ==
"CSR_LQE" && chip_ ==
"F3" && muon_ ==
"M2")
264 if (register_ ==
"CSR_LQE" && chip_ ==
"F3" && muon_ ==
"M3")
266 if (register_ ==
"CSR_LQE" && chip_ ==
"F4" && muon_ ==
"M1")
268 if (register_ ==
"CSR_LQE" && chip_ ==
"F4" && muon_ ==
"M2")
270 if (register_ ==
"CSR_LQE" && chip_ ==
"F4" && muon_ ==
"M3")
272 if (register_ ==
"CSR_LQE" && chip_ ==
"F5" && muon_ ==
"M1")
274 if (register_ ==
"CSR_LQE" && chip_ ==
"F5" && muon_ ==
"M2")
276 if (register_ ==
"CSR_LQE" && chip_ ==
"F5" && muon_ ==
"M3")
279 if (register_ ==
"CSR_KFL")
280 kill_fiber = ::strtol(writeValue_.c_str(),
nullptr, 16);
282 if (register_ ==
"CSR_SFC" && chip_ ==
"SP") {
283 unsigned int value = ::strtol(writeValue_.c_str(),
nullptr, 16);
287 if (register_ ==
"CNT_ETA" && chip_ ==
"SP") {
288 unsigned int value = ::strtol(writeValue_.c_str(),
nullptr, 16);
293 if (register_ ==
"DAT_ETA" && chip_ ==
"SP") {
294 unsigned int value = ::strtol(writeValue_.c_str(),
nullptr, 16);
303 if (eta_cnt >= 2 && eta_cnt < 10)
315 if (eta_cnt >= 14 && eta_cnt < 22)
327 if (eta_cnt >= 26 && eta_cnt < 33)
328 etawin[eta_cnt - 26] =
value;
357 if (register_ ==
"FIRMWARE" && muon_ ==
"SP") {
358 unsigned int value = atoi(writeValue_.c_str());
363 if (register_ ==
"FIRMWARE" && muon_ ==
"FA") {
364 unsigned int value = atoi(writeValue_.c_str());
369 if (register_ ==
"FIRMWARE" && muon_ ==
"DD") {
370 unsigned int value = atoi(writeValue_.c_str());
375 if (register_ ==
"FIRMWARE" && muon_ ==
"VM") {
376 unsigned int value = atoi(writeValue_.c_str());
391 pset.addParameter<
unsigned int>(
"useDT",
useDT);
392 pset.addParameter<
unsigned int>(
"widePhi",
widePhi);
426 pset.addParameter<std::vector<unsigned int> >(
"EtaMin",
etamin);
433 pset.addParameter<std::vector<unsigned int> >(
"EtaMax",
etamax);
440 pset.addParameter<std::vector<unsigned int> >(
"EtaWindows", etawin);
451 pset.addParameter<
unsigned int>(
"curvedp",
curvedp);
462 <<
"\nCORE CONFIGURATION AFTER READING THE DBS VALUES" 472 <<
"\n\nVARIOUS CONFIGURATION PARAMETERS AFTER READING THE DBS VALUES" 486 <<
"\n\nDAT_ETA AFTER READING THE DBS VALUES" 489 <<
"\netamin[0]=" <<
etamin[0] <<
"\netamin[1]=" <<
etamin[1] <<
"\netamin[2]=" <<
etamin[2]
490 <<
"\netamin[3]=" <<
etamin[3] <<
"\netamin[4]=" <<
etamin[4] <<
"\netamin[5]=" <<
etamin[5]
491 <<
"\netamin[6]=" <<
etamin[6] <<
"\netamin[7]=" <<
etamin[7]
496 <<
"\netamax[0]=" <<
etamax[0] <<
"\netamax[1]=" <<
etamax[1] <<
"\netamax[2]=" <<
etamax[2]
497 <<
"\netamax[3]=" <<
etamax[3] <<
"\netamax[4]=" <<
etamax[4] <<
"\netamax[5]=" <<
etamax[5]
498 <<
"\netamax[6]=" <<
etamax[6] <<
"\netamax[7]=" <<
etamax[7]
503 <<
"\netawin[0]=" << etawin[0] <<
"\netawin[1]=" << etawin[1] <<
"\netawin[2]=" << etawin[2]
504 <<
"\netawin[3]=" << etawin[3] <<
"\netawin[4]=" << etawin[4] <<
"\netawin[5]=" << etawin[5]
505 <<
"\netawin[6]=" << etawin[6]
515 <<
"\n\nFIRMWARE VERSIONS AFTER READING THE DBS VALUES"
edm::ParameterSet parameters(L1MuCSCTFConfiguration const &iConfig, int sp)