Definition at line 7 of file L1MuCSCTFConfiguration.cc.
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"
References csctfTrackDigis_cfi::AllowALCTonly, csctfTrackDigis_cfi::AllowCLCTonly, csctfTrackDigis_cfi::BXAdepth, csctfTrackDigis_cfi::CoreLatency, csctfTrackDigis_cfi::curvedp, muonTiming_cfi::etamax, muonTiming_cfi::etamin, csctfTrackDigis_cfi::firmwareDD, csctfTrackDigis_cfi::firmwareFA, csctfTrackDigis_cfi::firmwareSP, csctfTrackDigis_cfi::firmwareVM, createfilelist::int, csctfTrackDigis_cfi::kill_fiber, mps_splice::line, LogDebug, csctfTrackDigis_cfi::maxdeta112_accp, csctfTrackDigis_cfi::maxdeta113_accp, csctfTrackDigis_cfi::maxdeta12_accp, csctfTrackDigis_cfi::maxdeta13_accp, csctfTrackDigis_cfi::maxdphi112_accp, csctfTrackDigis_cfi::maxdphi113_accp, csctfTrackDigis_cfi::maxdphi12_accp, csctfTrackDigis_cfi::maxdphi13_accp, csctfTrackDigis_cfi::mbaPhiOff, csctfTrackDigis_cfi::mbbPhiOff, csctfTrackDigis_cfi::mindeta112_accp, csctfTrackDigis_cfi::mindeta113_accp, csctfTrackDigis_cfi::mindeta12_accp, csctfTrackDigis_cfi::mindeta13_accp, csctfTrackDigis_cfi::mindetap, csctfTrackDigis_cfi::mindetap_halo, csctfTrackDigis_cfi::mindphip, csctfTrackDigis_cfi::mindphip_halo, csctfTrackDigis_cfi::PreTrigger, muonDTDigis_cfi::pset, csctfTrackDigis_cfi::QualityEnableME1a, csctfTrackDigis_cfi::QualityEnableME1b, csctfTrackDigis_cfi::QualityEnableME1c, csctfTrackDigis_cfi::QualityEnableME1d, csctfTrackDigis_cfi::QualityEnableME1e, csctfTrackDigis_cfi::QualityEnableME1f, csctfTrackDigis_cfi::QualityEnableME2a, csctfTrackDigis_cfi::QualityEnableME2b, csctfTrackDigis_cfi::QualityEnableME2c, csctfTrackDigis_cfi::QualityEnableME3a, csctfTrackDigis_cfi::QualityEnableME3b, csctfTrackDigis_cfi::QualityEnableME3c, csctfTrackDigis_cfi::QualityEnableME4a, csctfTrackDigis_cfi::QualityEnableME4b, csctfTrackDigis_cfi::QualityEnableME4c, registers, csctfTrackDigis_cfi::rescaleSinglesPhi, csctfTrackDigis_cfi::run_core, csctfTrackDigis_cfi::singlesTrackOutput, csctfTrackDigis_cfi::straightp, AlCaHLTBitMon_QueryRunRegistry::string, csctfTrackDigis_cfi::trigger_on_MB1a, csctfTrackDigis_cfi::trigger_on_MB1d, csctfTrackDigis_cfi::trigger_on_ME1a, csctfTrackDigis_cfi::trigger_on_ME1b, csctfTrackDigis_cfi::trigger_on_ME2, csctfTrackDigis_cfi::trigger_on_ME3, csctfTrackDigis_cfi::trigger_on_ME4, csctfTrackDigis_cfi::useDT, relativeConstraints::value, and csctfTrackDigis_cfi::widePhi.