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;
58 
59 // ---------------------
60 // -- Class Interface --
61 // ---------------------
62 
64 public:
67 
69  virtual ~L1MuBMEtaProcessor();
70 
72  inline int id() const { return m_epid; }
73 
75  virtual void run(int bx, const edm::Event& e, const edm::EventSetup& c);
76 
78  virtual void reset();
79 
81  void print() const;
82 
84  inline const L1MuBMTrackFinder& tf() const { return m_tf; }
85 
87  inline int eta(int id) const { return m_eta[id]; }
88 
90  inline bool fineBit(int id) const { return m_fine[id]; }
91 
92 private:
94  void receiveData(int bx, const edm::Event& e, const L1TMuonBarrelParams& params);
95 
97  void receiveAddresses();
98 
101 
104 
106  void assign();
107 
109  static int quality(int id, int stat);
110 
111 private:
113  int m_epid;
114 
115  int m_mask;
116 
117  int m_eta[12];
118  bool m_fine[12];
119 
120  std::vector<int> m_foundPattern;
121  int m_pattern[12];
122 
123  int m_address[12];
126  std::vector<const L1MuBMTrackSegEta*> m_tseta;
127 
132 
134 };
135 
136 #endif
edm::ESGetToken< L1TMuonBarrelParams, L1TMuonBarrelParamsRcd > m_bmtfParamsToken
bool fineBit(int id) const
return fine bit, index [0,11]
virtual void run(int bx, const edm::Event &e, const edm::EventSetup &c)
run the Eta Processor
L1MuBMTrack * m_TrackCand[12]
L1MuBMTrack * m_TracKCand[12]
virtual void reset()
reset the Eta Processor
L1MuBMTEtaPatternLut theEtaPatternLUT
int eta(int id) const
return eta values, index [0,11]
const L1MuBMTrackFinder & tf() const
return reference to barrel MTTF
int id() const
return Eta Processor identifier (0-11)
std::vector< int > m_foundPattern
void receiveData(int bx, const edm::Event &e, const L1TMuonBarrelParams &params)
receive data (eta trigger primitives)
edm::EDGetTokenT< L1MuDTChambThContainer > m_DTDigiToken
void assign()
assign eta and etaFineBit
L1MuBMEtaProcessor(L1MuBMTrackFinder &, int id, edm::ConsumesCollector &&iC)
constructor
void runEtaMatchingUnit(const L1TMuonBarrelParams &params)
run Eta Matching Unit (EMU)
void runEtaTrackFinder(const L1TMuonBarrelParams &params)
run Eta Track Finder (ETF)
static int quality(int id, int stat)
get quality code; id [0,26], stat [1,3]
L1MuBMTrackFinder & m_tf
void receiveAddresses()
receive addresses (from 6 Sector Processors)
void print() const
print muon candidates found by the Eta Processor
std::vector< const L1MuBMTrackSegEta * > m_tseta
virtual ~L1MuBMEtaProcessor()
destructor
L1MuBMTQualPatternLut theQualPatternLUT