CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1MuGlobalMuonTrigger.h
Go to the documentation of this file.
1 //---------------------------------------------
2 //
3 // \class L1MuGlobalMuonTrigger
4 //
5 // Description: L1 Global Muon Trigger
6 //
7 //
8 //
9 // Author :
10 // Ivan Mikulec HEPHY Vienna
11 //
12 //--------------------------------------------------
13 #ifndef L1TriggerGlobalMuonTrigger_L1MuGlobalMuonTrigger_h
14 #define L1TriggerGlobalMuonTrigger_L1MuGlobalMuonTrigger_h
15 
16 //---------------
17 // C++ Headers --
18 //---------------
19 
20 //----------------------
21 // Base Class Headers --
22 //----------------------
24 
25 //------------------------------------
26 // Collaborating Class Declarations --
27 //------------------------------------
35 
48 
49 class L1MuGMTConfig;
50 class L1MuGMTPSB;
51 class L1MuGMTMatcher;
53 class L1MuGMTMipIsoAU;
54 class L1MuGMTMerger;
55 class L1MuGMTSorter;
56 
58 
59 class L1MuGMTDebugBlock;
60 
61 //---------------------
62 //-- Class Interface --
63 //---------------------
64 class L1MuGlobalMuonTrigger : public edm::one::EDProducer<edm::one::SharedResources> {
65 public:
67  ~L1MuGlobalMuonTrigger() override;
68  void beginJob() override;
69 
70  void produce(edm::Event&, const edm::EventSetup&) override;
71 
72  void reset();
73 
75  inline const L1MuGMTPSB* Data() const { return m_PSB; }
76 
78  inline const L1MuGMTMatcher* Matcher(int id) const { return m_Matcher[id]; }
79 
81  inline const L1MuGMTCancelOutUnit* CancelOutUnit(int id) const { return m_CancelOutUnit[id]; }
82 
84  inline const L1MuGMTMipIsoAU* MipIsoAU(int id) const { return m_MipIsoAU[id]; }
85 
87  inline const L1MuGMTMerger* Merger(int id) const { return m_Merger[id]; }
88 
90  inline const L1MuGMTSorter* Sorter() const { return m_Sorter; }
91 
95  std::unique_ptr<L1MuGMTReadoutCollection> getReadoutCollection();
96 
99 
102 
103 private:
104  L1MuGMTPSB* m_PSB;
110 
111  std::vector<L1MuGMTExtendedCand> m_ExtendedCands;
112  std::vector<L1MuGMTReadoutRecord*> m_ReadoutRingbuffer;
113 
116 
118 
120 
121  unsigned long long m_L1MuGMTScalesCacheID;
122  unsigned long long m_L1MuTriggerScalesCacheID;
123  unsigned long long m_L1MuTriggerPtScaleCacheID;
124  unsigned long long m_L1MuGMTParametersCacheID;
125  unsigned long long m_L1MuGMTChannelMaskCacheID;
126  unsigned long long m_L1CaloGeometryCacheID;
127 
134 };
135 
136 #endif // L1TriggerGlobalMuonTrigger_L1MuGlobalMuonTrigger_h
edm::ESGetToken< L1MuTriggerPtScale, L1MuTriggerPtScaleRcd > m_trigPtScaleToken
unsigned long long m_L1MuTriggerScalesCacheID
std::vector< L1MuGMTReadoutRecord * > m_ReadoutRingbuffer
unsigned long long m_L1MuGMTChannelMaskCacheID
const L1MuGMTMatcher * Matcher(int id) const
return pointer to Matcher
edm::ESGetToken< L1MuGMTParameters, L1MuGMTParametersRcd > m_gmtParamsToken
uint16_t *__restrict__ id
std::vector< L1MuGMTExtendedCand > m_ExtendedCands
edm::ESGetToken< L1MuTriggerScales, L1MuTriggerScalesRcd > m_trigScalesToken
const L1MuGMTSorter * Sorter() const
return pointer to Sorter
void produce(edm::Event &, const edm::EventSetup &) override
L1MuGlobalMuonTrigger(const edm::ParameterSet &)
unsigned long long m_L1CaloGeometryCacheID
unsigned long long m_L1MuTriggerPtScaleCacheID
L1MuGMTMipIsoAU * m_MipIsoAU[2]
const L1MuGMTPSB * Data() const
return pointer to PSB
edm::ESGetToken< L1MuGMTScales, L1MuGMTScalesRcd > m_gmtScalesToken
edm::ESGetToken< L1CaloGeometry, L1CaloGeometryRecord > m_caloGeomToken
const L1MuGMTCancelOutUnit * CancelOutUnit(int id) const
return pointer to Cancel Out Unit
std::unique_ptr< L1MuGMTReadoutCollection > getReadoutCollection()
const L1MuGMTMerger * Merger(int id) const
return pointer to Merger
L1MuGMTMatcher * m_Matcher[2]
L1MuGMTMerger * m_Merger[2]
unsigned long long m_L1MuGMTScalesCacheID
const L1MuGMTMipIsoAU * MipIsoAU(int id) const
return pointer to MIP &amp; ISO bit assignment unit
L1MuGMTCancelOutUnit * m_CancelOutUnit[4]
edm::ESGetToken< L1MuGMTChannelMask, L1MuGMTChannelMaskRcd > m_gmtChanMaskToken
static L1MuGMTConfig * m_config
unsigned long long m_L1MuGMTParametersCacheID
static L1MuGMTDebugBlock * m_db
L1MuGMTDebugBlock * DebugBlockForFill() const
for debug: return the debug block (in order to fill it)
L1MuGMTReadoutRecord * currentReadoutRecord() const
return a reference to the current record in the ring buffer