CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
41 class L1MuDTTrackSegEta;
42 class L1MuDTTrackFinder;
43 class L1MuDTTrack;
46 class L1MuDTTFMasks;
47 
48 // ---------------------
49 // -- Class Interface --
50 // ---------------------
51 
53 
54  public:
55 
57  L1MuDTEtaProcessor(const L1MuDTTrackFinder&, int id );
58 
60  virtual ~L1MuDTEtaProcessor();
61 
63  inline int id() const { return m_epid; }
64 
66  virtual void run(int bx, const edm::Event& e, const edm::EventSetup& c);
67 
69  virtual void reset();
70 
72  void print() const;
73 
75  inline const L1MuDTTrackFinder& tf() const { return m_tf; }
76 
78  inline int eta(int id) const { return m_eta[id]; }
79 
81  inline bool fineBit(int id) const { return m_fine[id]; }
82 
83  private:
84 
86  void receiveData(int bx, const edm::Event& e, const edm::EventSetup& c);
87 
89  void receiveAddresses();
90 
92  void runEtaTrackFinder(const edm::EventSetup& c);
93 
96 
98  void assign();
99 
101  static int quality(int id, int stat);
102 
103  private:
104 
106  int m_epid;
107 
108  int m_mask;
109 
110  int m_eta[12];
111  bool m_fine[12];
112 
113  std::vector<int> m_foundPattern;
114  int m_pattern[12];
115 
116  int m_address[12];
119  std::vector<const L1MuDTTrackSegEta*> m_tseta;
120 
124 
125 };
126 
127 #endif
const L1MuDTTrackFinder & tf() const
return reference to barrel MTTF
void runEtaTrackFinder(const edm::EventSetup &c)
run Eta Track Finder (ETF)
edm::ESHandle< L1MuDTEtaPatternLut > theEtaPatternLUT
const L1MuDTTrackFinder & m_tf
virtual ~L1MuDTEtaProcessor()
destructor
L1MuDTTrack * m_TracKCand[12]
void assign()
assign eta and etaFineBit
edm::ESHandle< L1MuDTQualPatternLut > theQualPatternLUT
static int quality(int id, int stat)
get quality code; id [0,26], stat [1,3]
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
std::vector< const L1MuDTTrackSegEta * > m_tseta
void receiveAddresses()
receive addresses (from 6 Sector Processors)
int id() const
return Eta Processor identifier (0-11)
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)
virtual void reset()
reset the Eta Processor
int eta(int id) const
return eta values, index [0,11]
L1MuDTTrack * m_TrackCand[12]
L1MuDTEtaProcessor(const L1MuDTTrackFinder &, int id)
constructor
void print() const
print muon candidates found by the Eta Processor
edm::ESHandle< L1MuDTTFMasks > msks