CMS 3D CMS Logo

CSCGEMMotherboardME21.cc
Go to the documentation of this file.
2 
4  unsigned sector, unsigned subsector,
5  unsigned chamber,
6  const edm::ParameterSet& conf)
7  : CSCGEMMotherboard(endcap, station, sector, subsector, chamber, conf)
8  , dropLowQualityCLCTsNoGEMs_(tmbParams_.getParameter<bool>("dropLowQualityCLCTsNoGEMs"))
9  , dropLowQualityALCTsNoGEMs_(tmbParams_.getParameter<bool>("dropLowQualityALCTsNoGEMs"))
10  , buildLCTfromALCTandGEM_(tmbParams_.getParameter<bool>("buildLCTfromALCTandGEM"))
11  , buildLCTfromCLCTandGEM_(tmbParams_.getParameter<bool>("buildLCTfromCLCTandGEM"))
12 {
13  if (!isSLHC_ or !runME21ILT_) edm::LogError("CSCGEMMotherboardME21|ConfigError")
14  << "+++ Upgrade CSCGEMMotherboardME21 constructed while isSLHC is not set! +++\n";
15 
16  // set LUTs
17  tmbLUT_.reset(new CSCGEMMotherboardLUTME21());
18 }
19 
20 
23 {
24  if (!isSLHC_ or !runME21ILT_) edm::LogError("CSCGEMMotherboardME21|ConfigError")
25  << "+++ Upgrade CSCGEMMotherboardME21 constructed while isSLHC is not set! +++\n";
26 }
27 
28 
30 {
31 }
32 
33 
34 void
36  const CSCComparatorDigiCollection* compdc,
37  const GEMPadDigiCollection* gemPads)
38 {
40  setupGeometry();
41  debugLUTs();
42 
43  if (gem_g != nullptr) {
44  if (infoV >= 0) edm::LogInfo("CSCGEMMotherboardME21|SetupInfo")
45  << "+++ run() called for GEM-CSC integrated trigger! +++ \n";
46  gemGeometryAvailable = true;
47  }
48 
49  // check for GEM geometry
50  if (not gemGeometryAvailable) {
51  if (infoV >= 0) edm::LogError("CSCGEMMotherboardME21|SetupError")
52  << "+++ run() called for GEM-CSC integrated trigger without valid GEM geometry! +++ \n";
53  return;
54  }
55  gemCoPadV = coPadProcessor->run(gemPads); // run copad processor in GE1/1
56 
57  if (!( alctProc and clctProc)) {
58  if (infoV >= 0) edm::LogError("CSCGEMMotherboardME21|SetupError")
59  << "+++ run() called for non-existing ALCT/CLCT processor! +++ \n";
60  return;
61  }
62 
63  alctProc->setCSCGeometry(cscGeometry_);
64  clctProc->setCSCGeometry(cscGeometry_);
65 
66  alctV = alctProc->run(wiredc); // run anodeLCT
67  clctV = clctProc->run(compdc); // run cathodeLCT
68 
69  // if there are no ALCTs and no CLCTs, it does not make sense to run this TMB
70  if (alctV.empty() and clctV.empty()) return;
71 
72  LogTrace("CSCGEMCMotherboardME21") <<"ALL ALCTs from ME21 "<< std::endl;
73  for (const auto& alct : alctV)
74  if (alct.isValid())
75  LogTrace("CSCGEMCMotherboardME21") << alct << std::endl;
76 
77  LogTrace("CSCGEMCMotherboardME21") <<"ALL CLCTs from ME21 "<< std::endl;
78  for (const auto& clct : clctV)
79  if (clct.isValid())
80  LogTrace("CSCGEMCMotherboardME21") << clct << std::endl;
81 
82  int used_clct_mask[20];
83  for (int c=0;c<20;++c) used_clct_mask[c]=0;
84 
85  // retrieve pads and copads in a certain BX window for this CSC
86 
87  retrieveGEMPads(gemPads, gemId);
89 
90  const bool hasPads(!pads_.empty());
91  const bool hasCoPads(!coPads_.empty());
92 
93  // ALCT centric matching
94  for (int bx_alct = 0; bx_alct < CSCConstants::MAX_ALCT_TBINS; bx_alct++) {
95  if (alctProc->bestALCT[bx_alct].isValid()) {
96  const int bx_clct_start(bx_alct - match_trig_window_size/2 - alctClctOffset_);
97  const int bx_clct_stop(bx_alct + match_trig_window_size/2 - alctClctOffset_);
98  const int bx_copad_start(bx_alct - maxDeltaBXCoPad_);
99  const int bx_copad_stop(bx_alct + maxDeltaBXCoPad_);
100 
101  if (debug_matching) {
102  LogTrace("CSCGEMCMotherboardME21") << "========================================================================" << std::endl;
103  LogTrace("CSCGEMCMotherboardME21") << "ALCT-CLCT matching in ME2/1 chamber: " << cscId_ << std::endl;
104  LogTrace("CSCGEMCMotherboardME21") << "------------------------------------------------------------------------" << std::endl;
105  LogTrace("CSCGEMCMotherboardME21") << "+++ Best ALCT Details: ";
106  alctProc->bestALCT[bx_alct].print();
107  LogTrace("CSCGEMCMotherboardME21") << "+++ Second ALCT Details: ";
108  alctProc->secondALCT[bx_alct].print();
109 
110  printGEMTriggerPads(bx_clct_start, bx_clct_stop, CSCPart::ME21);
111  printGEMTriggerCoPads(bx_clct_start, bx_clct_stop, CSCPart::ME21);
112 
113  LogTrace("CSCGEMCMotherboardME21") << "------------------------------------------------------------------------" << std::endl;
114  LogTrace("CSCGEMCMotherboardME21") << "Attempt ALCT-CLCT matching in ME2/1 in bx range: [" << bx_clct_start << "," << bx_clct_stop << "]" << std::endl;
115  }
116 
117  // ALCT-to-CLCT
118  int nSuccessFulMatches = 0;
119  for (int bx_clct = bx_clct_start; bx_clct <= bx_clct_stop; bx_clct++) {
120  if (bx_clct < 0 or bx_clct >= CSCConstants::MAX_CLCT_TBINS) continue;
121  if (drop_used_clcts and used_clct_mask[bx_clct]) continue;
122  if (clctProc->bestCLCT[bx_clct].isValid()) {
123  // clct quality
124  const int quality(clctProc->bestCLCT[bx_clct].getQuality());
125  // low quality ALCT
126  const bool lowQualityALCT(alctProc->bestALCT[bx_alct].getQuality() == 0);
127  // low quality ALCT or CLCT
128  const bool lowQuality(quality<4 or lowQualityALCT);
129  if (debug_matching) LogTrace("CSCGEMCMotherboardME21") << "++Valid ME21 CLCT: " << clctProc->bestCLCT[bx_clct] << std::endl;
130 
131  // pick the pad that corresponds
132  matches<GEMPadDigi> mPads;
133  matchingPads<GEMPadDigi>(clctProc->bestCLCT[bx_clct], clctProc->secondCLCT[bx_clct],
134  alctProc->bestALCT[bx_alct], alctProc->secondALCT[bx_alct], mPads);
135  matches<GEMCoPadDigi> mCoPads;
136  matchingPads<GEMCoPadDigi>(clctProc->bestCLCT[bx_clct], clctProc->secondCLCT[bx_clct],
137  alctProc->bestALCT[bx_alct], alctProc->secondALCT[bx_alct], mCoPads);
138 
139  if (dropLowQualityCLCTsNoGEMs_ and lowQuality and hasPads) {
140  int nFound(mPads.size());
141  const bool clctInEdge(clctProc->bestCLCT[bx_clct].getKeyStrip() < 5 or clctProc->bestCLCT[bx_clct].getKeyStrip() > 155);
142  if (clctInEdge){
143  if (debug_matching) LogTrace("CSCGEMCMotherboardME21") << "\tInfo: low quality CLCT in CSC chamber edge, don't care about GEM pads" << std::endl;
144  }
145  else {
146  if (nFound != 0){
147  if (debug_matching) LogTrace("CSCGEMCMotherboardME21") << "\tInfo: low quality CLCT with " << nFound << " matching GEM trigger pads" << std::endl;
148  }
149  else {
150  if (debug_matching) LogTrace("CSCGEMCMotherboardME21") << "\tWarning: low quality CLCT without matching GEM trigger pad" << std::endl;
151  continue;
152  }
153  }
154  }
155 
156  ++nSuccessFulMatches;
157 
158  int mbx = bx_clct-bx_clct_start;
159  correlateLCTsGEM(alctProc->bestALCT[bx_alct], alctProc->secondALCT[bx_alct],
160  clctProc->bestCLCT[bx_clct], clctProc->secondCLCT[bx_clct],
161  mPads, mCoPads,
162  allLCTs(bx_alct,mbx,0), allLCTs(bx_alct,mbx,1));
163  if (debug_matching) {
164  // if (infoV > 1) LogTrace("CSCMotherboard")
165  LogTrace("CSCGEMCMotherboardME21") << "Successful ALCT-CLCT match in ME21: bx_alct = " << bx_alct
166  << "; match window: [" << bx_clct_start << "; " << bx_clct_stop
167  << "]; bx_clct = " << bx_clct << std::endl;
168  LogTrace("CSCGEMCMotherboardME21") << "+++ Best CLCT Details: ";
169  clctProc->bestCLCT[bx_clct].print();
170  LogTrace("CSCGEMCMotherboardME21") << "+++ Second CLCT Details: ";
171  clctProc->secondCLCT[bx_clct].print();
172  }
173  if (allLCTs(bx_alct,mbx,0).isValid()) {
174  used_clct_mask[bx_clct] += 1;
175  if (match_earliest_clct_only) break;
176  }
177  }
178  }
179 
180  // ALCT-to-GEM matching
181  int nSuccessFulGEMMatches = 0;
182  if (nSuccessFulMatches==0 and buildLCTfromALCTandGEM_){
183  if (debug_matching) LogTrace("CSCGEMCMotherboardME21") << "++No valid ALCT-CLCT matches in ME21" << std::endl;
184  for (int bx_gem = bx_copad_start; bx_gem <= bx_copad_stop; bx_gem++) {
185  if (not hasCoPads) {
186  continue;
187  }
188 
189  // find the best matching copad
190  matches<GEMCoPadDigi> copads;
191  matchingPads<CSCALCTDigi, GEMCoPadDigi>(alctProc->bestALCT[bx_alct], alctProc->secondALCT[bx_alct], copads);
192 
193  if (debug_matching) LogTrace("CSCGEMCMotherboardME21") << "\t++Number of matching GEM CoPads in BX " << bx_alct << " : "<< copads.size() << std::endl;
194  if (copads.empty()) {
195  continue;
196  }
197 
198  CSCGEMMotherboard::correlateLCTsGEM(alctProc->bestALCT[bx_alct], alctProc->secondALCT[bx_alct],
199  copads, allLCTs(bx_alct,0,0), allLCTs(bx_alct,0,1));
200  if (allLCTs(bx_alct,0,0).isValid()) {
201  ++nSuccessFulGEMMatches;
202  if (match_earliest_clct_only) break;
203  }
204  if (debug_matching) {
205  LogTrace("CSCGEMCMotherboardME21") << "Successful ALCT-GEM CoPad match in ME21: bx_alct = " << bx_alct << std::endl << std::endl;
206  LogTrace("CSCGEMCMotherboardME21") << "------------------------------------------------------------------------" << std::endl << std::endl;
207  }
208  }
209  }
210 
211  if (debug_matching) {
212  LogTrace("CSCGEMCMotherboardME21") << "========================================================================" << std::endl;
213  LogTrace("CSCGEMCMotherboardME21") << "Summary: " << std::endl;
214  if (nSuccessFulMatches>1)
215  LogTrace("CSCGEMCMotherboardME21") << "Too many successful ALCT-CLCT matches in ME21: " << nSuccessFulMatches
216  << ", CSCDetId " << cscId_
217  << ", bx_alct = " << bx_alct
218  << "; match window: [" << bx_clct_start << "; " << bx_clct_stop << "]" << std::endl;
219  else if (nSuccessFulMatches==1)
220  LogTrace("CSCGEMCMotherboardME21") << "1 successful ALCT-CLCT match in ME21: "
221  << " CSCDetId " << cscId_
222  << ", bx_alct = " << bx_alct
223  << "; match window: [" << bx_clct_start << "; " << bx_clct_stop << "]" << std::endl;
224  else if (nSuccessFulGEMMatches==1)
225  LogTrace("CSCGEMCMotherboardME21") << "1 successful ALCT-GEM match in ME21: "
226  << " CSCDetId " << cscId_
227  << ", bx_alct = " << bx_alct
228  << "; match window: [" << bx_clct_start << "; " << bx_clct_stop << "]" << std::endl;
229  else
230  LogTrace("CSCGEMCMotherboardME21") << "Unsuccessful ALCT-CLCT match in ME21: "
231  << "CSCDetId " << cscId_
232  << ", bx_alct = " << bx_alct
233  << "; match window: [" << bx_clct_start << "; " << bx_clct_stop << "]" << std::endl;
234  }
235  }
236  // at this point we have invalid ALCTs --> try GEM pad matching
237  else{
238  auto coPads(coPads_[bx_alct]);
239  if (!coPads.empty() and buildLCTfromCLCTandGEM_) {
240  const int bx_clct_start(bx_alct - match_trig_window_size/2);
241  const int bx_clct_stop(bx_alct + match_trig_window_size/2);
242 
243  if (debug_matching){
244  LogTrace("CSCGEMCMotherboardME21") << "========================================================================" << std::endl;
245  LogTrace("CSCGEMCMotherboardME21") <<"GEM-CLCT matching in ME2/1 chamber: "<< cscId_<< "in bx:"<<bx_alct<<std::endl;
246  LogTrace("CSCGEMCMotherboardME21") << "------------------------------------------------------------------------" << std::endl;
247  }
248  // GEM-to-CLCT
249  int nSuccessFulMatches = 0;
250  for (int bx_clct = bx_clct_start; bx_clct <= bx_clct_stop; bx_clct++) {
251  if (bx_clct < 0 or bx_clct >= CSCConstants::MAX_CLCT_TBINS) continue;
252  if (drop_used_clcts and used_clct_mask[bx_clct]) continue;
253  if (clctProc->bestCLCT[bx_clct].isValid()) {
254  const int quality(clctProc->bestCLCT[bx_clct].getQuality());
255  // only use high-Q stubs for the time being
256  if (quality < 4) continue;
257 
258  ++nSuccessFulMatches;
259 
260  int mbx = std::abs(clctProc->bestCLCT[bx_clct].getBX()-bx_alct);
261  int bx_gem = (coPads[0].second).bx(1)+CSCConstants::LCT_CENTRAL_BX;
262  CSCGEMMotherboard::correlateLCTsGEM(clctProc->bestCLCT[bx_clct], clctProc->secondCLCT[bx_clct], coPads,
263  allLCTs(bx_gem,mbx,0), allLCTs(bx_gem,mbx,1));
264  if (debug_matching) {
265  // if (infoV > 1) LogTrace("CSCGEMMotherboardME21")
266  LogTrace("CSCGEMCMotherboardME21") << "Successful GEM-CLCT match in ME21: bx_alct = " << bx_alct <<std::endl;
267  //<< "; match window: [" << bx_clct_start << "; " << bx_clct_stop
268  //<< "]; bx_clct = " << bx_clct << std::endl;
269  LogTrace("CSCGEMCMotherboardME21") << "+++ Best CLCT Details: ";
270  clctProc->bestCLCT[bx_clct].print();
271  LogTrace("CSCGEMCMotherboardME21") << "+++ Second CLCT Details: ";
272  clctProc->secondCLCT[bx_clct].print();
273  }
274  if (allLCTs(bx_gem,mbx,0).isValid()) {
275  used_clct_mask[bx_gem] += 1;
276  if (match_earliest_clct_only) break;
277  }
278  }
279  }
280  }
281  }
282  }
283  // reduction of nLCTs per each BX
284  for (int bx = 0; bx < CSCConstants::MAX_LCT_TBINS; bx++) {
285  // counting
286  unsigned int n=0;
287  for (unsigned int mbx = 0; mbx < match_trig_window_size; mbx++) {
288  for (int i=0;i<CSCConstants::MAX_LCTS_PER_CSC;i++) {
289  if (allLCTs(bx,mbx,i).isValid()) {
290  ++n;
291  if (infoV > 0) {
292  LogDebug("CSCGEMMotherboardME21")
293  << "LCT"<<i+1<<" "<<bx<<"/"<<bx + mbx - match_trig_window_size/2<<": "<<allLCTs(bx,mbx,i)<<std::endl;
294  }
295  }
296  }
297  }
298 
299  // some simple cross-bx sorting algorithms
300  if (tmb_cross_bx_algo == 1 and (n>2)) {
301  n=0;
302  for (unsigned int mbx = 0; mbx < match_trig_window_size; mbx++) {
303  for (int i=0;i<CSCConstants::MAX_LCTS_PER_CSC;i++) {
304  if (allLCTs(bx,pref[mbx],i).isValid()) {
305  n++;
306  if (n>2) allLCTs(bx,pref[mbx],i).clear();
307  }
308  }
309  }
310 
311  n=0;
312  for (unsigned int mbx = 0; mbx < match_trig_window_size; mbx++) {
313  for (int i=0;i<CSCConstants::MAX_LCTS_PER_CSC;i++) {
314  if (allLCTs(bx,mbx,i).isValid()) {
315  n++;
316  if (infoV > 0) {
317  LogDebug("CSCGEMMotherboardME21")
318  << "LCT"<<i+1<<" "<<bx<<"/"<<bx + mbx - match_trig_window_size/2<<": "<<allLCTs(bx,mbx,i)<< std::endl;
319  }
320  }
321  }
322  if (infoV > 0 and n>0) LogDebug("CSCGEMMotherboardME21")
323  <<"bx "<<bx<<" nnLCT:"<<n<<" "<<n<<std::endl;
324  }
325  } // x-bx sorting
326  }
327 
328  bool first = true;
329  unsigned int n=0;
330  for (const auto& p : readoutLCTs()) {
331  if (debug_matching and first) {
332  LogTrace("CSCGEMCMotherboardME21") << "========================================================================" << std::endl;
333  LogTrace("CSCGEMCMotherboardME21") << "Counting the final LCTs in CSCGEM Motherboard ME21" << std::endl;
334  LogTrace("CSCGEMCMotherboardME21") << "========================================================================" << std::endl;
335  first = false;
336  LogTrace("CSCGEMCMotherboardME21") << "tmb_cross_bx_algo: " << tmb_cross_bx_algo << std::endl;
337  }
338  n++;
339  if (debug_matching)
340  LogTrace("CSCGEMCMotherboardME21") << "LCT "<<n<<" " << p <<std::endl;
341  }
342 }
343 
344 //readout LCTs
345 std::vector<CSCCorrelatedLCTDigi> CSCGEMMotherboardME21::readoutLCTs() const
346 {
347  std::vector<CSCCorrelatedLCTDigi> result;
348  allLCTs.getMatched(result);
351  return result;
352 }
353 
354 
356  const CSCALCTDigi& sALCT,
357  const CSCCLCTDigi& bCLCT,
358  const CSCCLCTDigi& sCLCT,
359  const GEMPadDigiIds& pads,
360  const GEMCoPadDigiIds& copads,
361  CSCCorrelatedLCTDigi& lct1,
362  CSCCorrelatedLCTDigi& lct2) const
363 {
364  CSCALCTDigi bestALCT = bALCT;
365  CSCALCTDigi secondALCT = sALCT;
366  CSCCLCTDigi bestCLCT = bCLCT;
367  CSCCLCTDigi secondCLCT = sCLCT;
368 
369  // assume that always anodeBestValid and cathodeBestValid
370  if (secondALCT == bestALCT) secondALCT.clear();
371  if (secondCLCT == bestCLCT) secondCLCT.clear();
372 
373  const bool ok_bb = bestALCT.isValid() and bestCLCT.isValid();
374  const bool ok_bs = bestALCT.isValid() and secondCLCT.isValid();
375  const bool ok_sb = secondALCT.isValid() and bestCLCT.isValid();
376  const bool ok_ss = secondALCT.isValid() and secondCLCT.isValid();
377 
378  if (!copads.empty() or !pads.empty()){
379 
380  // check matching copads
381  const GEMCoPadDigi& bb_copad = bestMatchingPad<GEMCoPadDigi>(bestALCT, bestCLCT, copads);
382  const GEMCoPadDigi& bs_copad = bestMatchingPad<GEMCoPadDigi>(bestALCT, secondCLCT, copads);
383  const GEMCoPadDigi& sb_copad = bestMatchingPad<GEMCoPadDigi>(secondALCT, bestCLCT, copads);
384  const GEMCoPadDigi& ss_copad = bestMatchingPad<GEMCoPadDigi>(secondALCT, secondCLCT, copads);
385 
386  // check matching pads
387  const GEMPadDigi& bb_pad = bestMatchingPad<GEMPadDigi>(bestALCT, bestCLCT, pads);
388  const GEMPadDigi& bs_pad = bestMatchingPad<GEMPadDigi>(bestALCT, secondCLCT, pads);
389  const GEMPadDigi& sb_pad = bestMatchingPad<GEMPadDigi>(secondALCT, bestCLCT, pads);
390  const GEMPadDigi& ss_pad = bestMatchingPad<GEMPadDigi>(secondALCT, secondCLCT, pads);
391 
392  // evaluate possible combinations
393  const bool ok_bb_copad = ok_bb and bb_copad.isValid();
394  const bool ok_bs_copad = ok_bs and bs_copad.isValid();
395  const bool ok_sb_copad = ok_sb and sb_copad.isValid();
396  const bool ok_ss_copad = ok_ss and ss_copad.isValid();
397 
398  const bool ok_bb_pad = (not ok_bb_copad) and ok_bb and bb_pad.isValid();
399  const bool ok_bs_pad = (not ok_bs_copad) and ok_bs and bs_pad.isValid();
400  const bool ok_sb_pad = (not ok_sb_copad) and ok_sb and sb_pad.isValid();
401  const bool ok_ss_pad = (not ok_ss_copad) and ok_ss and ss_pad.isValid();
402 
403  // possible cases with copad
404  if (ok_bb_copad or ok_ss_copad){
405  if (ok_bb_copad) lct1 = constructLCTsGEM(bestALCT, bestCLCT, bb_copad, 1);
406  if (ok_ss_copad) lct2 = constructLCTsGEM(secondALCT, secondCLCT, ss_copad, 2);
407  }
408  else if(ok_bs_copad or ok_sb_copad){
409  if (ok_bs_copad) lct1 = constructLCTsGEM(bestALCT, secondCLCT, bs_copad, 1);
410  if (ok_sb_copad) lct2 = constructLCTsGEM(secondALCT, bestCLCT, sb_copad, 2);
411  }
412 
413  // done processing?
414  if (lct1.isValid() and lct2.isValid()) return;
415 
416  // possible cases with pad
417  if ((ok_bb_pad or ok_ss_pad) and not (ok_bs_copad or ok_sb_copad)){
418  if (ok_bb_pad) lct1 = constructLCTsGEM(bestALCT, bestCLCT, bb_pad, 1);
419  if (ok_ss_pad) lct2 = constructLCTsGEM(secondALCT, secondCLCT, ss_pad, 2);
420  }
421  else if((ok_bs_pad or ok_sb_pad) and not (ok_bb_copad or ok_ss_copad)){
422  if (ok_bs_pad) lct1 = constructLCTsGEM(bestALCT, secondCLCT, bs_pad, 1);
423  if (ok_sb_pad) lct2 = constructLCTsGEM(secondALCT, bestCLCT, sb_pad, 2);
424  }
425  } else {
426  // run without gems - happens in less than 0.04% of the time
427  if (ok_bb) lct1 = constructLCTs(bestALCT, bestCLCT, CSCCorrelatedLCTDigi::ALCTCLCT, 1);
428  if (ok_ss) lct2 = constructLCTs(secondALCT, secondCLCT, CSCCorrelatedLCTDigi::ALCTCLCT, 2);
429  }
430 }
#define LogDebug(id)
void retrieveGEMPads(const GEMPadDigiCollection *pads, unsigned id)
std::vector< CSCCLCTDigi > clctV
void run(const CSCWireDigiCollection *wiredc, const CSCComparatorDigiCollection *compdc, const GEMPadDigiCollection *gemPads) override
unsigned int match_trig_window_size
bool isValid() const
check ALCT validity (1 - valid ALCT)
Definition: CSCALCTDigi.h:30
GEMCoPadDigiIdsBX coPads_
void correlateLCTsGEM(const CSCALCTDigi &bestALCT, const CSCALCTDigi &secondALCT, const CSCCLCTDigi &bestCLCT, const CSCCLCTDigi &secondCLCT, const GEMPadDigiIds &pads, const GEMCoPadDigiIds &copads, CSCCorrelatedLCTDigi &lct1, CSCCorrelatedLCTDigi &lct2) const
void clear()
clear this ALCT
Definition: CSCALCTDigi.cc:35
bool runME21ILT_
Definition: CSCBaseboard.h:92
std::unique_ptr< CSCCathodeLCTProcessor > clctProc
static bool sortLCTsByQuality(const CSCCorrelatedLCTDigi &, const CSCCorrelatedLCTDigi &)
int pref[CSCConstants::MAX_LCT_TBINS]
matches< GEMCoPadDigi > GEMCoPadDigiIds
CSCDetId cscId_
Definition: CSCBaseboard.h:46
std::vector< GEMCoPadDigi > gemCoPadV
bool isValid() const
Definition: GEMCoPadDigi.cc:32
void sortLCTs(std::vector< CSCCorrelatedLCTDigi > &lcts, bool(*sorter)(const CSCCorrelatedLCTDigi &, const CSCCorrelatedLCTDigi &)) const
std::unique_ptr< GEMCoPadProcessor > coPadProcessor
void correlateLCTsGEM(T &best, T &second, const GEMCoPadDigiIds &coPads, CSCCorrelatedLCTDigi &lct1, CSCCorrelatedLCTDigi &lct2) const
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
std::vector< CSCALCTDigi > alctV
static bool sortLCTsByGEMDphi(const CSCCorrelatedLCTDigi &, const CSCCorrelatedLCTDigi &)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
void printGEMTriggerCoPads(int bx_start, int bx_stop, enum CSCPart)
bool isValid() const
check CLCT validity (1 - valid CLCT)
Definition: CSCCLCTDigi.h:30
CSCCorrelatedLCTDigi constructLCTs(const CSCALCTDigi &aLCT, const CSCCLCTDigi &cLCT, int type, int trknmb) const
std::unique_ptr< CSCGEMMotherboardLUTME21 > tmbLUT_
#define LogTrace(id)
const CSCGeometry * cscGeometry_
Definition: CSCBaseboard.h:54
CSCCorrelatedLCTDigi constructLCTsGEM(const CSCALCTDigi &alct, const GEMCoPadDigi &gem, int i) const
std::vector< CSCCorrelatedLCTDigi > readoutLCTs() const override
void getMatched(std::vector< CSCCorrelatedLCTDigi > &) const
bool isValid() const
return valid pattern bit
std::unique_ptr< CSCAnodeLCTProcessor > alctProc
GEMPadDigiIdsBX pads_
void clear()
clear this CLCT
Definition: CSCCLCTDigi.cc:58
matches< GEMPadDigi > GEMPadDigiIds
const GEMGeometry * gem_g
unsigned int alctClctOffset_
Definition: CSCBaseboard.h:86
void printGEMTriggerPads(int bx_start, int bx_stop, enum CSCPart)