test
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 
44 class L1MuDTTrackSegEta;
45 class L1MuDTTrackFinder;
46 class L1MuDTTrack;
49 class L1MuDTTFMasks;
50 
51 // ---------------------
52 // -- Class Interface --
53 // ---------------------
54 
56 
57  public:
58 
61 
63  virtual ~L1MuDTEtaProcessor();
64 
66  inline int id() const { return m_epid; }
67 
69  virtual void run(int bx, const edm::Event& e, const edm::EventSetup& c);
70 
72  virtual void reset();
73 
75  void print() const;
76 
78  inline const L1MuDTTrackFinder& tf() const { return m_tf; }
79 
81  inline int eta(int id) const { return m_eta[id]; }
82 
84  inline bool fineBit(int id) const { return m_fine[id]; }
85 
86  private:
87 
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:
107 
109  int m_epid;
110 
111  int m_mask;
112 
113  int m_eta[12];
114  bool m_fine[12];
115 
116  std::vector<int> m_foundPattern;
117  int m_pattern[12];
118 
119  int m_address[12];
122  std::vector<const L1MuDTTrackSegEta*> m_tseta;
124 
128 
129 };
130 
131 #endif
L1MuDTEtaProcessor(const L1MuDTTrackFinder &, int id, edm::ConsumesCollector &&iC)
constructor
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]
edm::EDGetTokenT< L1MuDTChambThContainer > m_DTDigiToken
void print() const
print muon candidates found by the Eta Processor
edm::ESHandle< L1MuDTTFMasks > msks