CMS 3D CMS Logo

CSCGEMMotherboardME11.h
Go to the documentation of this file.
1 #ifndef L1Trigger_CSCTriggerPrimitives_CSCGEMMotherboardME11_h
2 #define L1Trigger_CSCTriggerPrimitives_CSCGEMMotherboardME11_h
3 
15 
17 public:
20  unsigned station,
21  unsigned sector,
22  unsigned subsector,
23  unsigned chamber,
24  const edm::ParameterSet& conf);
25 
28 
30  ~CSCGEMMotherboardME11() override;
31 
34  void run(const CSCWireDigiCollection* wiredc,
35  const CSCComparatorDigiCollection* compdc,
36  const GEMPadDigiCollection* gemPads) override;
37 
38  /* readout the LCTs in ME1a or ME1b */
39  std::vector<CSCCorrelatedLCTDigi> readoutLCTs1a() const;
40  std::vector<CSCCorrelatedLCTDigi> readoutLCTs1b() const;
41 
42 private:
43  /* access to the LUTs needed for matching */
44  const CSCGEMMotherboardLUTME11* getLUT() const override { return tmbLUT_.get(); }
45  std::unique_ptr<CSCGEMMotherboardLUTME11> tmbLUT_;
46  std::unique_ptr<CSCMotherboardLUTME11> cscTmbLUT_;
47 
48  /* readout the LCTs in a sector of ME11 */
49  std::vector<CSCCorrelatedLCTDigi> readoutLCTsME11(enum CSCPart me1ab) const;
50 
52  void sortLCTs(std::vector<CSCCorrelatedLCTDigi>&,
53  int bx,
54  bool (*sorter)(const CSCCorrelatedLCTDigi&, const CSCCorrelatedLCTDigi&)) const;
55  void sortLCTs(std::vector<CSCCorrelatedLCTDigi>&,
56  bool (*sorter)(const CSCCorrelatedLCTDigi&, const CSCCorrelatedLCTDigi&)) const;
57 
58  /* check if an ALCT cross a CLCT in an ME11 sector */
59  bool doesALCTCrossCLCT(const CSCALCTDigi& a, const CSCCLCTDigi& c) const;
60 
61  /* does wiregroup cross halfstrip or not */
62  bool doesWiregroupCrossStrip(int key_wg, int key_hs) const override;
63 
64  /* correlate a pair of ALCTs and a pair of CLCTs with matched pads or copads
65  the output is up to two LCTs in a sector of ME11 */
66  void correlateLCTsGEM(const CSCALCTDigi& bestALCT,
67  const CSCALCTDigi& secondALCT,
68  const CSCCLCTDigi& bestCLCT,
69  const CSCCLCTDigi& secondCLCT,
70  const GEMPadDigiIds& pads,
71  const GEMCoPadDigiIds& copads,
73  CSCCorrelatedLCTDigi& lct2) const;
74 
75  /* store the CLCTs found separately in ME1a and ME1b */
76  std::vector<CSCCLCTDigi> clctV;
77 
78  // Drop low quality stubs if they don't have GEMs
83 
84  // build LCT from ALCT and GEM
89 
90  // promote ALCT-GEM quality
93 };
94 #endif
std::vector< CSCCLCTDigi > clctV
void sortLCTs(std::vector< CSCCorrelatedLCTDigi > &, int bx, bool(*sorter)(const CSCCorrelatedLCTDigi &, const CSCCorrelatedLCTDigi &)) const
const CSCGEMMotherboardLUTME11 * getLUT() const override
bool doesALCTCrossCLCT(const CSCALCTDigi &a, const CSCCLCTDigi &c) const
matches< GEMCoPadDigi > GEMCoPadDigiIds
std::vector< CSCCorrelatedLCTDigi > readoutLCTs1b() const
std::unique_ptr< CSCMotherboardLUTME11 > cscTmbLUT_
std::vector< CSCCorrelatedLCTDigi > readoutLCTs1a() const
std::vector< CSCCorrelatedLCTDigi > readoutLCTsME11(enum CSCPart me1ab) const
std::unique_ptr< CSCGEMMotherboardLUTME11 > tmbLUT_
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
bool doesWiregroupCrossStrip(int key_wg, int key_hs) const override
double a
Definition: hdecay.h:119
matches< GEMPadDigi > GEMPadDigiIds
void run(const CSCWireDigiCollection *wiredc, const CSCComparatorDigiCollection *compdc, const GEMPadDigiCollection *gemPads) override