CMS 3D CMS Logo

L1MuBMEtaProcessor.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
17 //
18 //--------------------------------------------------
19 #ifndef L1MUBM_ETA_PROCESSOR_H
20 #define L1MUBM_ETA_PROCESSOR_H
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 
26 #include <vector>
27 
28 //----------------------
29 // Base Class Headers --
30 //----------------------
31 
32 //------------------------------------
33 // Collaborating Class Declarations --
34 //------------------------------------
35 
47 
50 
51 class L1MuBMTrackSegEta;
52 class L1MuBMTrackFinder;
53 class L1MuBMTrack;
56 class L1MuDTTFMasks;
57 
58 // ---------------------
59 // -- Class Interface --
60 // ---------------------
61 
63 public:
66 
68  virtual ~L1MuBMEtaProcessor();
69 
71  inline int id() const { return m_epid; }
72 
74  virtual void run(int bx, const edm::Event& e, const edm::EventSetup& c);
75 
77  virtual void reset();
78 
80  void print() const;
81 
83  inline const L1MuBMTrackFinder& tf() const { return m_tf; }
84 
86  inline int eta(int id) const { return m_eta[id]; }
87 
89  inline bool fineBit(int id) const { return m_fine[id]; }
90 
91 private:
93  void receiveData(int bx, const edm::Event& e, const edm::EventSetup& c);
94 
96  void receiveAddresses();
97 
99  void runEtaTrackFinder(const edm::EventSetup& c);
100 
102  void runEtaMatchingUnit(const edm::EventSetup& c);
103 
105  void assign();
106 
108  static int quality(int id, int stat);
109 
110 private:
112  int m_epid;
113 
114  int m_mask;
115 
116  int m_eta[12];
117  bool m_fine[12];
118 
119  std::vector<int> m_foundPattern;
120  int m_pattern[12];
121 
122  int m_address[12];
125  std::vector<const L1MuBMTrackSegEta*> m_tseta;
126 
127  //edm::ESHandle< L1MuDTEtaPatternLut > theEtaPatternLUT; // ETF look-up table
128  //edm::ESHandle< L1MuDTQualPatternLut > theQualPatternLUT; // EMU look-up tables
129  //edm::ESHandle< L1MuDTTFMasks > msks;
134 
136 };
137 
138 #endif
const L1MuBMTrackFinder & tf() const
return reference to barrel MTTF
const L1MuBMTrackFinder & m_tf
virtual void run(int bx, const edm::Event &e, const edm::EventSetup &c)
run the Eta Processor
L1MuBMTrack * m_TrackCand[12]
void receiveData(int bx, const edm::Event &e, const edm::EventSetup &c)
receive data (eta trigger primitives)
L1MuBMTrack * m_TracKCand[12]
bool fineBit(int id) const
return fine bit, index [0,11]
virtual void reset()
reset the Eta Processor
L1MuBMTEtaPatternLut theEtaPatternLUT
void runEtaMatchingUnit(const edm::EventSetup &c)
run Eta Matching Unit (EMU)
void print() const
print muon candidates found by the Eta Processor
std::vector< int > m_foundPattern
L1MuBMEtaProcessor(const L1MuBMTrackFinder &, int id, edm::ConsumesCollector &&iC)
constructor
int id() const
return Eta Processor identifier (0-11)
edm::EDGetTokenT< L1MuDTChambThContainer > m_DTDigiToken
void assign()
assign eta and etaFineBit
void runEtaTrackFinder(const edm::EventSetup &c)
run Eta Track Finder (ETF)
static int quality(int id, int stat)
get quality code; id [0,26], stat [1,3]
void receiveAddresses()
receive addresses (from 6 Sector Processors)
int eta(int id) const
return eta values, index [0,11]
std::vector< const L1MuBMTrackSegEta * > m_tseta
virtual ~L1MuBMEtaProcessor()
destructor
L1MuBMTQualPatternLut theQualPatternLUT
edm::ESHandle< L1TMuonBarrelParams > bmtfParamsHandle