CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
45 
46 class L1MuBMTrackSegEta;
47 class L1MuBMTrackFinder;
48 class L1MuBMTrack;
51 class L1MuDTTFMasks;
52 
53 // ---------------------
54 // -- Class Interface --
55 // ---------------------
56 
58 
59  public:
60 
63 
65  virtual ~L1MuBMEtaProcessor();
66 
68  inline int id() const { return m_epid; }
69 
71  virtual void run(int bx, const edm::Event& e, const edm::EventSetup& c);
72 
74  virtual void reset();
75 
77  void print() const;
78 
80  inline const L1MuBMTrackFinder& tf() const { return m_tf; }
81 
83  inline int eta(int id) const { return m_eta[id]; }
84 
86  inline bool fineBit(int id) const { return m_fine[id]; }
87 
88  private:
89 
91  void receiveData(int bx, const edm::Event& e, const edm::EventSetup& c);
92 
94  void receiveAddresses();
95 
97  void runEtaTrackFinder(const edm::EventSetup& c);
98 
100  void runEtaMatchingUnit(const edm::EventSetup& c);
101 
103  void assign();
104 
106  static int quality(int id, int stat);
107 
108  private:
109 
111  int m_epid;
112 
113  int m_mask;
114 
115  int m_eta[12];
116  bool m_fine[12];
117 
118  std::vector<int> m_foundPattern;
119  int m_pattern[12];
120 
121  int m_address[12];
124  std::vector<const L1MuBMTrackSegEta*> m_tseta;
125 
129 
131 
132 };
133 
134 #endif
const L1MuBMTrackFinder & tf() const
return reference to barrel MTTF
edm::ESHandle< L1MuDTTFMasks > msks
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]
edm::ESHandle< L1MuDTQualPatternLut > theQualPatternLUT
bool fineBit(int id) const
return fine bit, index [0,11]
virtual void reset()
reset the Eta Processor
edm::ESHandle< L1MuDTEtaPatternLut > 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