CMS 3D CMS Logo

L1MuDTEtaProcessor.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
17 //
18 //--------------------------------------------------
19 #ifndef L1MUDT_ETA_PROCESSOR_H
20 #define L1MUDT_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 class L1MuDTTrackSegEta;
46 class L1MuDTTrackFinder;
47 class L1MuDTTrack;
50 class L1MuDTTFMasks;
51 class L1MuDTTFMasksRcd;
54 // ---------------------
55 // -- Class Interface --
56 // ---------------------
57 
59 public:
62 
64  virtual ~L1MuDTEtaProcessor();
65 
67  inline int id() const { return m_epid; }
68 
70  virtual void run(int bx, const edm::Event& e, const edm::EventSetup& c);
71 
73  virtual void reset();
74 
76  void print() const;
77 
79  inline const L1MuDTTrackFinder& tf() const { return m_tf; }
80 
82  inline int eta(int id) const { return m_eta[id]; }
83 
85  inline bool fineBit(int id) const { return m_fine[id]; }
86 
87 private:
89  void receiveData(int bx, const edm::Event& e, const edm::EventSetup& c);
90 
92  void receiveAddresses();
93 
95  void runEtaTrackFinder(const edm::EventSetup& c);
96 
99 
101  void assign();
102 
104  static int quality(int id, int stat);
105 
106 private:
108  int m_epid;
109 
110  int m_mask;
111 
112  int m_eta[12];
113  bool m_fine[12];
114 
115  std::vector<int> m_foundPattern;
116  int m_pattern[12];
117 
118  int m_address[12];
121  std::vector<const L1MuDTTrackSegEta*> m_tseta;
123 
130 };
131 
132 #endif
L1MuDTEtaProcessor(const L1MuDTTrackFinder &, int id, edm::ConsumesCollector &&iC)
constructor
void runEtaTrackFinder(const edm::EventSetup &c)
run Eta Track Finder (ETF)
const L1MuDTTrackFinder & m_tf
virtual ~L1MuDTEtaProcessor()
destructor
bool fineBit(int id) const
return fine bit, index [0,11]
edm::ESGetToken< L1MuDTEtaPatternLut, L1MuDTEtaPatternLutRcd > theEtaToken
edm::ESGetToken< L1MuDTTFMasks, L1MuDTTFMasksRcd > theMsksToken
L1MuDTTrack * m_TracKCand[12]
void assign()
assign eta and etaFineBit
static int quality(int id, int stat)
get quality code; id [0,26], stat [1,3]
edm::ESHandle< L1MuDTTFMasks > msks
int id() const
return Eta Processor identifier (0-11)
virtual void run(int bx, const edm::Event &e, const edm::EventSetup &c)
run the Eta Processor
edm::ESHandle< L1MuDTEtaPatternLut > theEtaPatternLUT
std::vector< const L1MuDTTrackSegEta * > m_tseta
edm::ESGetToken< L1MuDTQualPatternLut, L1MuDTQualPatternLutRcd > theQualToken
void receiveAddresses()
receive addresses (from 6 Sector Processors)
void runEtaMatchingUnit(const edm::EventSetup &c)
run Eta Matching Unit (EMU)
std::vector< int > m_foundPattern
void receiveData(int bx, const edm::Event &e, const edm::EventSetup &c)
receive data (eta trigger primitives)
const L1MuDTTrackFinder & tf() const
return reference to barrel MTTF
int eta(int id) const
return eta values, index [0,11]
virtual void reset()
reset the Eta Processor
void print() const
print muon candidates found by the Eta Processor
edm::ESHandle< L1MuDTQualPatternLut > theQualPatternLUT
L1MuDTTrack * m_TrackCand[12]
edm::EDGetTokenT< L1MuDTChambThContainer > m_DTDigiToken