51 <<
"+++ trying to instantiate TMB of illegal CSC id ["
52 <<
" endcap = " << endc <<
" station = " <<
stat <<
" sector = " << sect <<
" subsector = " << subs
53 <<
" chamber = " <<
cham <<
"]; skipping it... +++\n";
62 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1].reset(
65 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1].reset(
68 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1].reset(
71 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1].reset(
74 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1].reset(
77 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1].reset(
107 tmb_[endc - 1][
stat - 1][sect - 1][subs - 1][
cham - 1]->setConfigParameters(conf);
168 LogTrace(
"CSCTriggerPrimitivesBuilder")
169 <<
"CSCTriggerPrimitivesBuilder::build in E:" << endc <<
" S:" <<
stat <<
" R:" <<
ring;
170 tmb11->
run(wiredc, compdc);
175 const std::vector<CSCCorrelatedLCTDigi>& lctV = tmb11->
readoutLCTs1b();
176 const std::vector<CSCCorrelatedLCTDigi>& lctV1a = tmb11->
readoutLCTs1a();
177 const std::vector<CSCALCTDigi>& alctV = tmb11->
alctProc->readoutALCTs();
178 const std::vector<CSCALCTDigi>& alctV_all =
180 const std::vector<CSCCLCTDigi>& clctV = tmb11->
clctProc->readoutCLCTsME1b();
181 const std::vector<CSCCLCTDigi>& clctV_all =
183 const std::vector<int>& preTriggerBXs = tmb11->
clctProc->preTriggerBXs();
184 const std::vector<CSCCLCTPreTriggerDigi>& pretriggerV = tmb11->
clctProc->preTriggerDigisME1b();
185 const std::vector<CSCCLCTDigi>& clctV1a = tmb11->
clctProc->readoutCLCTsME1a();
186 const std::vector<CSCCLCTPreTriggerDigi>& pretriggerV1a = tmb11->
clctProc->preTriggerDigisME1a();
187 const std::vector<CSCALCTPreTriggerDigi>& alctpretriggerV = tmb11->
alctProc->preTriggerDigis();
190 LogTrace(
"CSCTriggerPrimitivesBuilder")
191 <<
"CSCTriggerPrimitivesBuilder:: a=" << alctV.size() <<
" c=" << clctV.size()
192 <<
" l=" << lctV.size() <<
" c=" << clctV1a.size() <<
" l=" << lctV1a.size();
196 if (!(lctV.empty() && alctV.empty() && clctV.empty()) and
infoV > 1) {
197 LogTrace(
"L1CSCTrigger") <<
"CSCTriggerPrimitivesBuilder results in " << detid;
200 put(lctV, oc_lct, detid,
" ME1b LCT digi");
201 put(alctV, oc_alct, detid,
" ME1b ALCT digi");
202 put(alctV_all, oc_alct_all, detid,
" ME1b ALCT digi");
203 put(clctV, oc_clct, detid,
" ME1b CLCT digi");
204 put(clctV_all, oc_clct_all, detid,
" ME1b CLCT digi");
205 put(pretriggerV, oc_pretrigger, detid,
" ME1b CLCT pre-trigger digi");
206 put(preTriggerBXs, oc_pretrig, detid,
" ME1b CLCT pre-trigger BX");
207 put(alctpretriggerV, oc_alctpretrigger, detid,
" ME1b ALCT pre-trigger digi");
216 if (!(lctV1a.empty() && clctV1a.empty()) and
infoV > 1) {
217 LogTrace(
"L1CSCTrigger") <<
"CSCTriggerPrimitivesBuilder results in " << detid1a;
221 put(lctV1a, oc_lct, detid,
" ME1a LCT digi");
222 put(clctV1a, oc_clct, detid,
" ME1a CLCT digi");
223 put(pretriggerV1a, oc_pretrigger, detid,
" ME1a CLCT pre-trigger digi");
233 LogTrace(
"CSCTriggerPrimitivesBuilder")
234 <<
"CSCTriggerPrimitivesBuilder::build in E:" << endc <<
" S:" <<
stat <<
" R:" <<
ring;
237 tmb11GEM->
run(wiredc, compdc, gemClusters);
239 tmb11GEM->
run(wiredc, compdc, gemPads);
246 const std::vector<CSCCorrelatedLCTDigi>& lctV = tmb11GEM->
readoutLCTs1b();
247 const std::vector<CSCCorrelatedLCTDigi>& lctV1a = tmb11GEM->
readoutLCTs1a();
248 const std::vector<CSCALCTDigi>& alctV = tmb11GEM->
alctProc->readoutALCTs();
249 const std::vector<CSCALCTDigi>& alctV_all =
251 const std::vector<CSCCLCTDigi>& clctV = tmb11GEM->
clctProc->readoutCLCTsME1b();
252 const std::vector<CSCCLCTDigi>& clctV_all =
254 const std::vector<int>& preTriggerBXs = tmb11GEM->
clctProc->preTriggerBXs();
255 const std::vector<CSCCLCTPreTriggerDigi>& pretriggerV = tmb11GEM->
clctProc->preTriggerDigisME1b();
256 const std::vector<CSCCLCTDigi>& clctV1a = tmb11GEM->
clctProc->readoutCLCTsME1a();
257 const std::vector<CSCCLCTPreTriggerDigi>& pretriggerV1a = tmb11GEM->
clctProc->preTriggerDigisME1a();
258 const std::vector<GEMCoPadDigi>& copads = tmb11GEM->
coPadProcessor->readoutCoPads();
259 const std::vector<CSCALCTPreTriggerDigi>& alctpretriggerV = tmb11GEM->
alctProc->preTriggerDigis();
262 if (!(lctV.empty() && alctV.empty() && clctV.empty()) and
infoV > 1) {
263 LogTrace(
"L1CSCTrigger") <<
"CSCTriggerPrimitivesBuilder results in " << detid;
267 put(lctV, oc_lct, detid,
" ME1b LCT digi");
268 put(alctV, oc_alct, detid,
" ME1b ALCT digi");
269 put(alctV_all, oc_alct_all, detid,
" ME1b ALCT digi");
270 put(clctV, oc_clct, detid,
" ME1b CLCT digi");
271 put(clctV_all, oc_clct_all, detid,
" ME1b CLCT digi");
272 put(pretriggerV, oc_pretrigger, detid,
" ME1b CLCT pre-trigger digi");
273 put(preTriggerBXs, oc_pretrig, detid,
" ME1b CLCT pre-trigger BX");
274 put(copads, oc_gemcopad, gemId,
" GEM coincidence pad");
275 put(alctpretriggerV, oc_alctpretrigger, detid,
" ME1b ALCT pre-trigger digi");
283 if (!(lctV1a.empty() && clctV1a.empty()) and
infoV > 1) {
284 LogTrace(
"L1CSCTrigger") <<
"CSCTriggerPrimitivesBuilder results in " << detid1a;
288 put(lctV1a, oc_lct, detid,
" ME1a LCT digi");
289 put(clctV1a, oc_clct, detid,
" ME1a CLCT digi");
290 put(pretriggerV1a, oc_pretrigger, detid,
" ME1a CLCT pre-trigger digi");
301 tmb21GEM->
run(wiredc, compdc, gemClusters);
303 tmb21GEM->
run(wiredc, compdc, gemPads);
310 const std::vector<CSCCorrelatedLCTDigi>& lctV = tmb21GEM->
readoutLCTs();
311 const std::vector<CSCALCTDigi>& alctV = tmb21GEM->
alctProc->readoutALCTs();
312 const std::vector<CSCALCTDigi>& alctV_all =
314 const std::vector<CSCCLCTDigi>& clctV = tmb21GEM->
clctProc->readoutCLCTs();
315 const std::vector<CSCCLCTDigi>& clctV_all =
317 const std::vector<int>& preTriggerBXs = tmb21GEM->
clctProc->preTriggerBXs();
318 const std::vector<CSCCLCTPreTriggerDigi>& pretriggerV = tmb21GEM->
clctProc->preTriggerDigis();
319 const std::vector<GEMCoPadDigi>& copads = tmb21GEM->
coPadProcessor->readoutCoPads();
320 const std::vector<CSCALCTPreTriggerDigi>& alctpretriggerV = tmb21GEM->
alctProc->preTriggerDigis();
322 if (!(alctV.empty() && clctV.empty() && lctV.empty()) and
infoV > 1) {
323 LogTrace(
"L1CSCTrigger") <<
"CSCTriggerPrimitivesBuilder got results in " << detid;
327 put(lctV, oc_lct, detid,
" ME21 LCT digi");
328 put(alctV, oc_alct, detid,
" ME21 ALCT digi");
329 put(alctV_all, oc_alct_all, detid,
" ME21 ALCT digi");
330 put(clctV, oc_clct, detid,
" ME21 CLCT digi");
331 put(clctV_all, oc_clct_all, detid,
" ME21 CLCT digi");
332 put(pretriggerV, oc_pretrigger, detid,
" ME21 CLCT pre-trigger digi");
333 put(preTriggerBXs, oc_pretrig, detid,
" ME21 CLCT pre-trigger BX");
334 put(copads, oc_gemcopad, gemId,
" GEM coincidence pad");
335 put(alctpretriggerV, oc_alctpretrigger, detid,
" ME21 ALCT pre-trigger digi");
342 utmb->
run(wiredc, compdc);
345 const std::vector<CSCCorrelatedLCTDigi>& lctV = utmb->
readoutLCTs();
346 const std::vector<CSCALCTDigi>& alctV = utmb->
alctProc->readoutALCTs();
347 const std::vector<CSCALCTDigi>& alctV_all =
349 const std::vector<CSCCLCTDigi>& clctV = utmb->
clctProc->readoutCLCTs();
350 const std::vector<CSCCLCTDigi>& clctV_all =
352 const std::vector<int>& preTriggerBXs = utmb->
clctProc->preTriggerBXs();
353 const std::vector<CSCCLCTPreTriggerDigi>& pretriggerV = utmb->
clctProc->preTriggerDigis();
354 const std::vector<CSCALCTPreTriggerDigi>& alctpretriggerV = utmb->
alctProc->preTriggerDigis();
356 if (!(alctV.empty() && clctV.empty() && lctV.empty()) and
infoV > 1) {
357 LogTrace(
"L1CSCTrigger") <<
"CSCTriggerPrimitivesBuilder got results in " << detid;
361 put(lctV, oc_lct, detid,
" LCT digi");
362 put(alctV, oc_alct, detid,
" ALCT digi");
363 put(alctV_all, oc_alct_all, detid,
" ALCT digi");
364 put(clctV, oc_clct, detid,
" CLCT digi");
365 put(clctV_all, oc_clct_all, detid, tmb->
getCSCName() +
" CLCT digi");
366 put(pretriggerV, oc_pretrigger, detid,
" CLCT pre-trigger digi");
367 put(preTriggerBXs, oc_pretrig, detid,
" CLCT pre-trigger BX");
368 put(alctpretriggerV, oc_alctpretrigger, detid,
" ALCT pre-trigger digi");
374 tmb->
run(wiredc, compdc);
377 const std::vector<CSCCorrelatedLCTDigi>& lctV = tmb->
readoutLCTs();
378 const std::vector<CSCALCTDigi>& alctV = tmb->
alctProc->readoutALCTs();
379 const std::vector<CSCALCTDigi>& alctV_all =
381 const std::vector<CSCCLCTDigi>& clctV = tmb->
clctProc->readoutCLCTs();
382 const std::vector<CSCCLCTDigi>& clctV_all =
384 const std::vector<int>& preTriggerBXs = tmb->
clctProc->preTriggerBXs();
385 const std::vector<CSCCLCTPreTriggerDigi>& pretriggerV = tmb->
clctProc->preTriggerDigis();
386 const std::vector<CSCALCTPreTriggerDigi>& alctpretriggerV = tmb->
alctProc->preTriggerDigis();
388 if (!(alctV.empty() && clctV.empty() && lctV.empty()) and
infoV > 1) {
389 LogTrace(
"L1CSCTrigger") <<
"CSCTriggerPrimitivesBuilder got results in " << detid;
394 put(alctV, oc_alct, detid, tmb->
getCSCName() +
" ALCT digi");
395 put(alctV_all, oc_alct_all, detid, tmb->
getCSCName() +
" ALCT digi");
396 put(clctV, oc_clct, detid, tmb->
getCSCName() +
" CLCT digi");
397 put(clctV_all, oc_clct_all, detid, tmb->
getCSCName() +
" CLCT digi");
398 put(pretriggerV, oc_pretrigger, detid, tmb->
getCSCName() +
" CLCT pre-trigger digi");
399 put(preTriggerBXs, oc_pretrig, detid, tmb->
getCSCName() +
" CLCT pre-trigger BX");
400 put(alctpretriggerV, oc_alctpretrigger, detid, tmb->
getCSCName() +
" ALCT pre-trigger digi");
413 std::vector<csctf::TrackStub>
result;
419 std::vector<csctf::TrackStub> subs1, subs2;
422 result.insert(
result.end(), subs1.begin(), subs1.end());
423 result.insert(
result.end(), subs2.begin(), subs2.end());
425 std::vector<csctf::TrackStub> sector;
427 result.insert(
result.end(), sector.begin(), sector.end());
433 std::vector<csctf::TrackStub>::const_iterator
itr =
result.begin();
435 oc_sorted_lct.insertDigi(
CSCDetId(
itr->getDetId().rawId()), *(
itr->getDigi()));
437 LogDebug(
"L1CSCTrigger") <<
"MPC " << *(
itr->getDigi()) <<
" found in ME" << ((
itr->endcap() == 1) ?
"+" :
"-")
440 <<
" trig id. " <<
itr->cscid() <<
")"