8 LogDebug(
"L1MuCSCTFConfiguration") <<
"SP:" <<
int(sp) << std::endl;
28 unsigned int useDT = 0;
67 std::vector<unsigned int>
etamin(8),
etamax(8), etawin(7);
137 <<
"\nCORE CONFIGURATION DEFAULT VALUES"
147 <<
"\n\nVARIOUS CONFIGURATION PARAMETERS DEFAULT VALUES"
161 <<
"\n\nDEFAULT VALUES FOR DAT_ETA"
164 <<
"\netamin[0]=" <<
etamin[0] <<
"\netamin[1]=" <<
etamin[1] <<
"\netamin[2]=" <<
etamin[2]
165 <<
"\netamin[3]=" <<
etamin[3] <<
"\netamin[4]=" <<
etamin[4] <<
"\netamin[5]=" <<
etamin[5]
166 <<
"\netamin[6]=" <<
etamin[6] <<
"\netamin[7]=" <<
etamin[7]
171 <<
"\netamax[0]=" <<
etamax[0] <<
"\netamax[1]=" <<
etamax[1] <<
"\netamax[2]=" <<
etamax[2]
172 <<
"\netamax[3]=" <<
etamax[3] <<
"\netamax[4]=" <<
etamax[4] <<
"\netamax[5]=" <<
etamax[5]
173 <<
"\netamax[6]=" <<
etamax[6] <<
"\netamax[7]=" <<
etamax[7]
178 <<
"\netawin[0]=" << etawin[0] <<
"\netawin[1]=" << etawin[1] <<
"\netawin[2]=" << etawin[2]
179 <<
"\netawin[3]=" << etawin[3] <<
"\netawin[4]=" << etawin[4] <<
"\netawin[5]=" << etawin[5]
180 <<
"\netawin[6]=" << etawin[6]
190 <<
"\n\nFIRMWARE VERSIONS"
195 while (!conf.eof()) {
197 conf.getline(buff, 1024);
198 std::stringstream
line(buff);
209 std::getline(
line, comments_);
211 if (register_ ==
"CSR_REQ" && chip_ ==
"SP") {
212 unsigned int value = ::strtol(writeValue_.c_str(),
nullptr, 16);
223 if (register_ ==
"CSR_SCC" && chip_ ==
"SP") {
224 unsigned int value = ::strtol(writeValue_.c_str(),
nullptr, 16);
232 if (register_ ==
"CSR_LQE" && chip_ ==
"F1" && muon_ ==
"M1")
234 if (register_ ==
"CSR_LQE" && chip_ ==
"F1" && muon_ ==
"M2")
236 if (register_ ==
"CSR_LQE" && chip_ ==
"F1" && muon_ ==
"M3")
238 if (register_ ==
"CSR_LQE" && chip_ ==
"F2" && muon_ ==
"M1")
240 if (register_ ==
"CSR_LQE" && chip_ ==
"F2" && muon_ ==
"M2")
242 if (register_ ==
"CSR_LQE" && chip_ ==
"F2" && muon_ ==
"M3")
244 if (register_ ==
"CSR_LQE" && chip_ ==
"F3" && muon_ ==
"M1")
246 if (register_ ==
"CSR_LQE" && chip_ ==
"F3" && muon_ ==
"M2")
248 if (register_ ==
"CSR_LQE" && chip_ ==
"F3" && muon_ ==
"M3")
250 if (register_ ==
"CSR_LQE" && chip_ ==
"F4" && muon_ ==
"M1")
252 if (register_ ==
"CSR_LQE" && chip_ ==
"F4" && muon_ ==
"M2")
254 if (register_ ==
"CSR_LQE" && chip_ ==
"F4" && muon_ ==
"M3")
256 if (register_ ==
"CSR_LQE" && chip_ ==
"F5" && muon_ ==
"M1")
258 if (register_ ==
"CSR_LQE" && chip_ ==
"F5" && muon_ ==
"M2")
260 if (register_ ==
"CSR_LQE" && chip_ ==
"F5" && muon_ ==
"M3")
263 if (register_ ==
"CSR_KFL")
264 kill_fiber = ::strtol(writeValue_.c_str(),
nullptr, 16);
266 if (register_ ==
"CSR_SFC" && chip_ ==
"SP") {
267 unsigned int value = ::strtol(writeValue_.c_str(),
nullptr, 16);
271 if (register_ ==
"CNT_ETA" && chip_ ==
"SP") {
272 unsigned int value = ::strtol(writeValue_.c_str(),
nullptr, 16);
277 if (register_ ==
"DAT_ETA" && chip_ ==
"SP") {
278 unsigned int value = ::strtol(writeValue_.c_str(),
nullptr, 16);
287 if (eta_cnt >= 2 && eta_cnt < 10)
299 if (eta_cnt >= 14 && eta_cnt < 22)
311 if (eta_cnt >= 26 && eta_cnt < 33)
312 etawin[eta_cnt - 26] =
value;
341 if (register_ ==
"FIRMWARE" && muon_ ==
"SP") {
342 unsigned int value = atoi(writeValue_.c_str());
347 if (register_ ==
"FIRMWARE" && muon_ ==
"FA") {
348 unsigned int value = atoi(writeValue_.c_str());
353 if (register_ ==
"FIRMWARE" && muon_ ==
"DD") {
354 unsigned int value = atoi(writeValue_.c_str());
359 if (register_ ==
"FIRMWARE" && muon_ ==
"VM") {
360 unsigned int value = atoi(writeValue_.c_str());
375 pset.addParameter<
unsigned int>(
"useDT",
useDT);
376 pset.addParameter<
unsigned int>(
"widePhi",
widePhi);
410 pset.addParameter<std::vector<unsigned int> >(
"EtaMin",
etamin);
417 pset.addParameter<std::vector<unsigned int> >(
"EtaMax",
etamax);
424 pset.addParameter<std::vector<unsigned int> >(
"EtaWindows", etawin);
435 pset.addParameter<
unsigned int>(
"curvedp",
curvedp);
446 <<
"\nCORE CONFIGURATION AFTER READING THE DBS VALUES"
456 <<
"\n\nVARIOUS CONFIGURATION PARAMETERS AFTER READING THE DBS VALUES"
470 <<
"\n\nDAT_ETA AFTER READING THE DBS VALUES"
473 <<
"\netamin[0]=" <<
etamin[0] <<
"\netamin[1]=" <<
etamin[1] <<
"\netamin[2]=" <<
etamin[2]
474 <<
"\netamin[3]=" <<
etamin[3] <<
"\netamin[4]=" <<
etamin[4] <<
"\netamin[5]=" <<
etamin[5]
475 <<
"\netamin[6]=" <<
etamin[6] <<
"\netamin[7]=" <<
etamin[7]
480 <<
"\netamax[0]=" <<
etamax[0] <<
"\netamax[1]=" <<
etamax[1] <<
"\netamax[2]=" <<
etamax[2]
481 <<
"\netamax[3]=" <<
etamax[3] <<
"\netamax[4]=" <<
etamax[4] <<
"\netamax[5]=" <<
etamax[5]
482 <<
"\netamax[6]=" <<
etamax[6] <<
"\netamax[7]=" <<
etamax[7]
487 <<
"\netawin[0]=" << etawin[0] <<
"\netawin[1]=" << etawin[1] <<
"\netawin[2]=" << etawin[2]
488 <<
"\netawin[3]=" << etawin[3] <<
"\netawin[4]=" << etawin[4] <<
"\netawin[5]=" << etawin[5]
489 <<
"\netawin[6]=" << etawin[6]
499 <<
"\n\nFIRMWARE VERSIONS AFTER READING THE DBS VALUES"
508 myStr <<
"\nL1 Mu CSCTF Parameters \n" << std::endl;
510 for (
int iSP = 0; iSP < 12; iSP++) {
511 myStr <<
"=============================================" << std::endl;
512 myStr <<
"Printing out Global Tag Content for SP " << iSP + 1 << std::endl;
514 myStr <<
"=============================================" << std::endl;