Definition at line 7 of file L1MuCSCTFConfiguration.cc.
References edm::ParameterSet::addParameter(), 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.
Referenced by configAsText(), CSCTFSectorProcessor::initialize(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputTags(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::recursePSetProperties().
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" 138 <<
"\nrun_core=" << run_core <<
"\ntrigger_on_ME1a=" << trigger_on_ME1a <<
"\ntrigger_on_ME1b=" << trigger_on_ME1b
139 <<
"\ntrigger_on_ME2=" << trigger_on_ME2 <<
"\ntrigger_on_ME3=" << trigger_on_ME3
140 <<
"\ntrigger_on_ME4=" << trigger_on_ME4 <<
"\ntrigger_on_MB1a=" << trigger_on_MB1a
141 <<
"\ntrigger_on_MB1d=" << trigger_on_MB1d
143 <<
"\nBXAdepth=" << BXAdepth <<
"\nuseDT=" << useDT <<
"\nwidePhi=" << widePhi <<
"\nPreTrigger=" << PreTrigger
145 <<
"\nCoreLatency=" << CoreLatency <<
"\nrescaleSinglesPhi=" << rescaleSinglesPhi
147 <<
"\n\nVARIOUS CONFIGURATION PARAMETERS DEFAULT VALUES" 148 <<
"\nAllowALCTonly=" << AllowALCTonly <<
"\nAllowCLCTonly=" << AllowCLCTonly
150 <<
"\nQualityEnableME1a=" << QualityEnableME1a <<
"\nQualityEnableME1b=" << QualityEnableME1b
151 <<
"\nQualityEnableME1c=" << QualityEnableME1c <<
"\nQualityEnableME1d=" << QualityEnableME1d
152 <<
"\nQualityEnableME1e=" << QualityEnableME1e <<
"\nQualityEnableME1f=" << QualityEnableME1f
153 <<
"\nQualityEnableME2a=" << QualityEnableME2a <<
"\nQualityEnableME2b=" << QualityEnableME2b
154 <<
"\nQualityEnableME2c=" << QualityEnableME2c <<
"\nQualityEnableME3a=" << QualityEnableME3a
155 <<
"\nQualityEnableME3b=" << QualityEnableME3b <<
"\nQualityEnableME3c=" << QualityEnableME3c
156 <<
"\nQualityEnableME4a=" << QualityEnableME4a <<
"\nQualityEnableME4b=" << QualityEnableME4b
157 <<
"\nQualityEnableME4c=" << QualityEnableME4c
159 <<
"\nkill_fiber=" << kill_fiber <<
"\nsinglesTrackOutput=" << singlesTrackOutput
161 <<
"\n\nDEFAULT VALUES FOR DAT_ETA" 162 <<
"\nmindetap =" << mindetap <<
"\nmindetap_halo=" << mindetap_halo
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]
168 <<
"\nmindeta12_accp =" << mindeta12_accp <<
"\nmindeta13_accp =" << mindeta13_accp
169 <<
"\nmindeta112_accp=" << mindeta112_accp <<
"\nmindeta113_accp=" << mindeta113_accp
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]
175 <<
"\nmaxdeta12_accp =" << maxdeta12_accp <<
"\nmaxdeta13_accp =" << maxdeta13_accp
176 <<
"\nmaxdeta112_accp=" << maxdeta112_accp <<
"\nmaxdeta113_accp=" << maxdeta113_accp
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]
182 <<
"\nmaxdphi12_accp =" << maxdphi12_accp <<
"\nmaxdphi13_accp =" << maxdphi13_accp
183 <<
"\nmaxdphi112_accp=" << maxdphi112_accp <<
"\nmaxdphi113_accp=" << maxdphi113_accp
185 <<
"\nmindphip =" << mindphip <<
"\nmindphip_halo=" << mindphip_halo
187 <<
"\nstraightp=" << straightp <<
"\ncurvedp =" << curvedp <<
"\nmbaPhiOff=" << mbaPhiOff
188 <<
"\nmbbPhiOff=" << mbbPhiOff
190 <<
"\n\nFIRMWARE VERSIONS" 191 <<
"\nSP: " << firmwareSP <<
"\nFA: " << firmwareFA <<
"\nDD: " << firmwareDD <<
"\nVM: " <<
firmwareVM;
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);
213 run_core = (value & 0x8000);
214 trigger_on_ME1a = (value & 0x0001);
215 trigger_on_ME1b = (value & 0x0002);
216 trigger_on_ME2 = (value & 0x0004);
217 trigger_on_ME3 = (value & 0x0008);
218 trigger_on_ME4 = (value & 0x0010);
219 trigger_on_MB1a = (value & 0x0100);
220 trigger_on_MB1d = (value & 0x0200);
223 if (register_ ==
"CSR_SCC" && chip_ ==
"SP") {
224 unsigned int value = ::strtol(writeValue_.c_str(),
nullptr, 16);
226 BXAdepth = (value & 0x3);
227 useDT = ((value & 0x80) >> 7);
228 widePhi = ((value & 0x40) >> 6);
229 PreTrigger = ((value & 0x300) >> 8);
232 if (register_ ==
"CSR_LQE" && chip_ ==
"F1" && muon_ ==
"M1")
233 QualityEnableME1a = ::strtol(writeValue_.c_str(),
nullptr, 16);
234 if (register_ ==
"CSR_LQE" && chip_ ==
"F1" && muon_ ==
"M2")
235 QualityEnableME1b = ::strtol(writeValue_.c_str(),
nullptr, 16);
236 if (register_ ==
"CSR_LQE" && chip_ ==
"F1" && muon_ ==
"M3")
237 QualityEnableME1c = ::strtol(writeValue_.c_str(),
nullptr, 16);
238 if (register_ ==
"CSR_LQE" && chip_ ==
"F2" && muon_ ==
"M1")
239 QualityEnableME1d = ::strtol(writeValue_.c_str(),
nullptr, 16);
240 if (register_ ==
"CSR_LQE" && chip_ ==
"F2" && muon_ ==
"M2")
241 QualityEnableME1e = ::strtol(writeValue_.c_str(),
nullptr, 16);
242 if (register_ ==
"CSR_LQE" && chip_ ==
"F2" && muon_ ==
"M3")
243 QualityEnableME1f = ::strtol(writeValue_.c_str(),
nullptr, 16);
244 if (register_ ==
"CSR_LQE" && chip_ ==
"F3" && muon_ ==
"M1")
245 QualityEnableME2a = ::strtol(writeValue_.c_str(),
nullptr, 16);
246 if (register_ ==
"CSR_LQE" && chip_ ==
"F3" && muon_ ==
"M2")
247 QualityEnableME2b = ::strtol(writeValue_.c_str(),
nullptr, 16);
248 if (register_ ==
"CSR_LQE" && chip_ ==
"F3" && muon_ ==
"M3")
249 QualityEnableME2c = ::strtol(writeValue_.c_str(),
nullptr, 16);
250 if (register_ ==
"CSR_LQE" && chip_ ==
"F4" && muon_ ==
"M1")
251 QualityEnableME3a = ::strtol(writeValue_.c_str(),
nullptr, 16);
252 if (register_ ==
"CSR_LQE" && chip_ ==
"F4" && muon_ ==
"M2")
253 QualityEnableME3b = ::strtol(writeValue_.c_str(),
nullptr, 16);
254 if (register_ ==
"CSR_LQE" && chip_ ==
"F4" && muon_ ==
"M3")
255 QualityEnableME3c = ::strtol(writeValue_.c_str(),
nullptr, 16);
256 if (register_ ==
"CSR_LQE" && chip_ ==
"F5" && muon_ ==
"M1")
257 QualityEnableME4a = ::strtol(writeValue_.c_str(),
nullptr, 16);
258 if (register_ ==
"CSR_LQE" && chip_ ==
"F5" && muon_ ==
"M2")
259 QualityEnableME4b = ::strtol(writeValue_.c_str(),
nullptr, 16);
260 if (register_ ==
"CSR_LQE" && chip_ ==
"F5" && muon_ ==
"M3")
261 QualityEnableME4c = ::strtol(writeValue_.c_str(),
nullptr, 16);
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);
268 singlesTrackOutput = ((value & 0x3000) >> 12);
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);
285 mindetap_halo =
value;
287 if (eta_cnt >= 2 && eta_cnt < 10)
291 mindeta12_accp =
value;
293 mindeta13_accp =
value;
295 mindeta112_accp =
value;
297 mindeta113_accp =
value;
299 if (eta_cnt >= 14 && eta_cnt < 22)
303 maxdeta12_accp =
value;
305 maxdeta13_accp =
value;
307 maxdeta112_accp =
value;
309 maxdeta113_accp =
value;
311 if (eta_cnt >= 26 && eta_cnt < 33)
312 etawin[eta_cnt - 26] =
value;
315 maxdphi12_accp =
value;
317 maxdphi13_accp =
value;
319 maxdphi112_accp =
value;
321 maxdphi113_accp =
value;
326 mindphip_halo =
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());
424 pset.
addParameter<std::vector<unsigned int> >(
"EtaWindows", etawin);
446 <<
"\nCORE CONFIGURATION AFTER READING THE DBS VALUES" 447 <<
"\nrun_core=" << run_core <<
"\ntrigger_on_ME1a=" << trigger_on_ME1a <<
"\ntrigger_on_ME1b=" << trigger_on_ME1b
448 <<
"\ntrigger_on_ME2=" << trigger_on_ME2 <<
"\ntrigger_on_ME3=" << trigger_on_ME3
449 <<
"\ntrigger_on_ME4=" << trigger_on_ME4 <<
"\ntrigger_on_MB1a=" << trigger_on_MB1a
450 <<
"\ntrigger_on_MB1d=" << trigger_on_MB1d
452 <<
"\nBXAdepth=" << BXAdepth <<
"\nuseDT=" << useDT <<
"\nwidePhi=" << widePhi <<
"\nPreTrigger=" << PreTrigger
454 <<
"\nCoreLatency=" << CoreLatency <<
"\nrescaleSinglesPhi=" << rescaleSinglesPhi
456 <<
"\n\nVARIOUS CONFIGURATION PARAMETERS AFTER READING THE DBS VALUES" 457 <<
"\nAllowALCTonly=" << AllowALCTonly <<
"\nAllowCLCTonly=" << AllowCLCTonly
459 <<
"\nQualityEnableME1a=" << QualityEnableME1a <<
"\nQualityEnableME1b=" << QualityEnableME1b
460 <<
"\nQualityEnableME1c=" << QualityEnableME1c <<
"\nQualityEnableME1d=" << QualityEnableME1d
461 <<
"\nQualityEnableME1e=" << QualityEnableME1e <<
"\nQualityEnableME1f=" << QualityEnableME1f
462 <<
"\nQualityEnableME2a=" << QualityEnableME2a <<
"\nQualityEnableME2b=" << QualityEnableME2b
463 <<
"\nQualityEnableME2c=" << QualityEnableME2c <<
"\nQualityEnableME3a=" << QualityEnableME3a
464 <<
"\nQualityEnableME3b=" << QualityEnableME3b <<
"\nQualityEnableME3c=" << QualityEnableME3c
465 <<
"\nQualityEnableME4a=" << QualityEnableME4a <<
"\nQualityEnableME4b=" << QualityEnableME4b
466 <<
"\nQualityEnableME4c=" << QualityEnableME4c
468 <<
"\nkill_fiber=" << kill_fiber <<
"\nsinglesTrackOutput=" << singlesTrackOutput
470 <<
"\n\nDAT_ETA AFTER READING THE DBS VALUES" 471 <<
"\nmindetap =" << mindetap <<
"\nmindetap_halo=" << mindetap_halo
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]
477 <<
"\nmindeta12_accp =" << mindeta12_accp <<
"\nmindeta13_accp =" << mindeta13_accp
478 <<
"\nmindeta112_accp=" << mindeta112_accp <<
"\nmindeta113_accp=" << mindeta113_accp
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]
484 <<
"\nmaxdeta12_accp =" << maxdeta12_accp <<
"\nmaxdeta13_accp =" << maxdeta13_accp
485 <<
"\nmaxdeta112_accp=" << maxdeta112_accp <<
"\nmaxdeta113_accp=" << maxdeta113_accp
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]
491 <<
"\nmaxdphi12_accp =" << maxdphi12_accp <<
"\nmaxdphi13_accp =" << maxdphi13_accp
492 <<
"\nmaxdphi112_accp=" << maxdphi112_accp <<
"\nmaxdphi113_accp=" << maxdphi113_accp
494 <<
"\nmindphip =" << mindphip <<
"\nmindphip_halo=" << mindphip_halo
496 <<
"\nstraightp=" << straightp <<
"\ncurvedp =" << curvedp <<
"\nmbaPhiOff=" << mbaPhiOff
497 <<
"\nmbbPhiOff=" << mbbPhiOff
499 <<
"\n\nFIRMWARE VERSIONS AFTER READING THE DBS VALUES" 500 <<
"\nSP: " << firmwareSP <<
"\nFA: " << firmwareFA <<
"\nDD: " << firmwareDD <<
"\nVM: " <<
firmwareVM;
void addParameter(std::string const &name, T const &value)
std::string registers[12]