CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 //------------------------------------
34 
35 class L1MuGMTConfig;
36 class L1MuGMTPSB;
37 class L1MuGMTMatcher;
39 class L1MuGMTMipIsoAU;
40 class L1MuGMTMerger;
41 class L1MuGMTSorter;
42 
44 
45 class L1MuGMTDebugBlock;
46 
47 //---------------------
48 //-- Class Interface --
49 //---------------------
50 class L1MuGlobalMuonTrigger : public edm::one::EDProducer<edm::one::SharedResources> {
51 
52  public:
53 
56  virtual void beginJob();
57 
58  virtual void produce(edm::Event&, const edm::EventSetup&);
59 
60  void reset();
61 
63  inline const L1MuGMTPSB* Data() const { return m_PSB; }
64 
66  inline const L1MuGMTMatcher* Matcher(int id) const { return m_Matcher[id]; }
67 
69  inline const L1MuGMTCancelOutUnit* CancelOutUnit(int id) const { return m_CancelOutUnit[id]; }
70 
72  inline const L1MuGMTMipIsoAU* MipIsoAU(int id) const { return m_MipIsoAU[id]; }
73 
75  inline const L1MuGMTMerger* Merger(int id) const { return m_Merger[id]; }
76 
78  inline const L1MuGMTSorter* Sorter() const { return m_Sorter; }
79 
80 
84  std::auto_ptr<L1MuGMTReadoutCollection> getReadoutCollection();
85 
88 
89 
92 
93  private:
94 
101 
102  std::vector<L1MuGMTExtendedCand> m_ExtendedCands;
103  std::vector<L1MuGMTReadoutRecord*> m_ReadoutRingbuffer;
104 
107 
109 
111 
112  unsigned long long m_L1MuGMTScalesCacheID;
113  unsigned long long m_L1MuTriggerScalesCacheID;
114  unsigned long long m_L1MuTriggerPtScaleCacheID;
115  unsigned long long m_L1MuGMTParametersCacheID;
116  unsigned long long m_L1MuGMTChannelMaskCacheID;
117  unsigned long long m_L1CaloGeometryCacheID;
118 };
119 
120 #endif // L1TriggerGlobalMuonTrigger_L1MuGlobalMuonTrigger_h
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
std::vector< L1MuGMTExtendedCand > m_ExtendedCands
const L1MuGMTSorter * Sorter() const
return pointer to Sorter
L1MuGlobalMuonTrigger(const edm::ParameterSet &)
unsigned long long m_L1CaloGeometryCacheID
std::auto_ptr< L1MuGMTReadoutCollection > getReadoutCollection()
unsigned long long m_L1MuTriggerPtScaleCacheID
L1MuGMTMipIsoAU * m_MipIsoAU[2]
const L1MuGMTPSB * Data() const
return pointer to PSB
const L1MuGMTCancelOutUnit * CancelOutUnit(int id) const
return pointer to Cancel Out Unit
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]
static L1MuGMTConfig * m_config
unsigned long long m_L1MuGMTParametersCacheID
static L1MuGMTDebugBlock * m_db
virtual void produce(edm::Event &, const edm::EventSetup &)
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