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 GEMPadDigiClusterCollection* 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
CSCGEMMotherboardME11::clctV
std::vector< CSCCLCTDigi > clctV
Definition: CSCGEMMotherboardME11.h:76
CSCGEMMotherboardLUTME11
Definition: CSCUpgradeMotherboardLUT.h:78
relativeConstraints.station
station
Definition: relativeConstraints.py:67
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
CSCGEMMotherboardME11::run
void run(const CSCWireDigiCollection *wiredc, const CSCComparatorDigiCollection *compdc, const GEMPadDigiClusterCollection *gemPads) override
Definition: CSCGEMMotherboardME11.cc:57
CSCGEMMotherboardME11::~CSCGEMMotherboardME11
~CSCGEMMotherboardME11() override
Definition: CSCGEMMotherboardME11.cc:48
CSCGEMMotherboardME11::readoutLCTs1a
std::vector< CSCCorrelatedLCTDigi > readoutLCTs1a() const
Definition: CSCGEMMotherboardME11.cc:396
makeMuonMisalignmentScenario.endcap
endcap
Definition: makeMuonMisalignmentScenario.py:320
CSCGEMMotherboardME11::buildLCTfromCLCTandGEM_ME1a_
bool buildLCTfromCLCTandGEM_ME1a_
Definition: CSCGEMMotherboardME11.h:87
CSCGEMMotherboard.h
CSCCLCTDigi
Definition: CSCCLCTDigi.h:17
CSCGEMMotherboardME11::dropLowQualityCLCTsNoGEMs_ME1b_
bool dropLowQualityCLCTsNoGEMs_ME1b_
Definition: CSCGEMMotherboardME11.h:80
CSCGEMMotherboardME11::CSCGEMMotherboardME11
CSCGEMMotherboardME11()
Definition: CSCGEMMotherboardME11.cc:37
CSCPart
CSCPart
Definition: CSCUpgradeMotherboardLUT.h:12
CSCGEMMotherboardME11::tmbLUT_
std::unique_ptr< CSCGEMMotherboardLUTME11 > tmbLUT_
Definition: CSCGEMMotherboardME11.h:45
CSCGEMMotherboardME11::buildLCTfromALCTandGEM_ME1a_
bool buildLCTfromALCTandGEM_ME1a_
Definition: CSCGEMMotherboardME11.h:85
GEMPadDigiClusterCollection
CSCGEMMotherboardME11::dropLowQualityALCTsNoGEMs_ME1b_
bool dropLowQualityALCTsNoGEMs_ME1b_
Definition: CSCGEMMotherboardME11.h:82
CSCGEMMotherboardME11::cscTmbLUT_
std::unique_ptr< CSCMotherboardLUTME11 > cscTmbLUT_
Definition: CSCGEMMotherboardME11.h:46
GEMCoPadDigiIds
matches< GEMCoPadDigi > GEMCoPadDigiIds
Definition: CSCGEMMotherboard.h:26
CSCGEMMotherboardME11::readoutLCTs1b
std::vector< CSCCorrelatedLCTDigi > readoutLCTs1b() const
Definition: CSCGEMMotherboardME11.cc:398
edm::ParameterSet
Definition: ParameterSet.h:47
a
double a
Definition: hdecay.h:119
sorter
Definition: SETFilter.cc:31
CSCGEMMotherboardME11::dropLowQualityCLCTsNoGEMs_ME1a_
bool dropLowQualityCLCTsNoGEMs_ME1a_
Definition: CSCGEMMotherboardME11.h:79
CSCGEMMotherboardME11::promoteCLCTGEMquality_ME1a_
bool promoteCLCTGEMquality_ME1a_
Definition: CSCGEMMotherboardME11.h:91
CSCGEMMotherboardME11::sortLCTs
void sortLCTs(std::vector< CSCCorrelatedLCTDigi > &, int bx, bool(*sorter)(const CSCCorrelatedLCTDigi &, const CSCCorrelatedLCTDigi &)) const
Definition: CSCGEMMotherboardME11.cc:475
CSCGEMMotherboardME11::correlateLCTsGEM
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
Definition: CSCGEMMotherboardME11.cc:509
CSCComparatorDigiCollection
CSCGEMMotherboardME11::doesALCTCrossCLCT
bool doesALCTCrossCLCT(const CSCALCTDigi &a, const CSCCLCTDigi &c) const
Definition: CSCGEMMotherboardME11.cc:501
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
CSCGEMMotherboard
Definition: CSCGEMMotherboard.h:29
CSCWireDigiCollection
CSCGEMMotherboardME11::promoteCLCTGEMquality_ME1b_
bool promoteCLCTGEMquality_ME1b_
Definition: CSCGEMMotherboardME11.h:92
CSCALCTDigi
Definition: CSCALCTDigi.h:17
CSCGEMMotherboardME11::readoutLCTsME11
std::vector< CSCCorrelatedLCTDigi > readoutLCTsME11(enum CSCPart me1ab) const
Definition: CSCGEMMotherboardME11.cc:403
relativeConstraints.chamber
chamber
Definition: relativeConstraints.py:53
CSCGEMMotherboardME11::dropLowQualityALCTsNoGEMs_ME1a_
bool dropLowQualityALCTsNoGEMs_ME1a_
Definition: CSCGEMMotherboardME11.h:81
CSCGEMMotherboardME11::buildLCTfromCLCTandGEM_ME1b_
bool buildLCTfromCLCTandGEM_ME1b_
Definition: CSCGEMMotherboardME11.h:88
CSCGEMMotherboardME11
Definition: CSCGEMMotherboardME11.h:16
CSCGEMMotherboardME11::getLUT
const CSCGEMMotherboardLUTME11 * getLUT() const override
Definition: CSCGEMMotherboardME11.h:44
GEMPadDigiIds
matches< GEMPadDigi > GEMPadDigiIds
Definition: CSCGEMMotherboard.h:22
CSCGEMMotherboardME11::doesWiregroupCrossStrip
bool doesWiregroupCrossStrip(int key_wg, int key_hs) const override
Definition: CSCGEMMotherboardME11.cc:505
CSCGEMMotherboardME11::buildLCTfromALCTandGEM_ME1b_
bool buildLCTfromALCTandGEM_ME1b_
Definition: CSCGEMMotherboardME11.h:86
CSCCorrelatedLCTDigi
Definition: CSCCorrelatedLCTDigi.h:19