CMS 3D CMS Logo

L1MuGMTEtaProjectionUnit.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
11 //
12 //
13 // Author :
14 // H. Sakulin CERN EP
15 //
16 // Migrated to CMSSW:
17 // I. Mikulec
18 //
19 //--------------------------------------------------
20 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTEtaProjectionUnit_h
21 #define L1TriggerGlobalMuonTrigger_L1MuGMTEtaProjectionUnit_h
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 
27 #include <vector>
28 #include <bitset>
29 
30 //----------------------
31 // Base Class Headers --
32 //----------------------
33 
34 //------------------------------------
35 // Collaborating Class Declarations --
36 //------------------------------------
37 
41 
42 class L1MuGMTMipIsoAU;
43 class L1MuGMTCand;
44 
45 // ---------------------
46 // -- Class Interface --
47 // ---------------------
48 
50 public:
52  L1MuGMTEtaProjectionUnit(const L1MuGMTMipIsoAU& miau, int id);
53 
55  virtual ~L1MuGMTEtaProjectionUnit();
56 
58  void run();
59 
61  void reset();
62 
64  void print() const;
65 
67  inline int id() const { return m_id; }
68 
70  inline bool isSelected(int idx) const { return m_eta_select[idx]; }
71 
72 private:
73  void load();
74 
75 private:
76  typedef std::bitset<14> TEtaBits;
77 
79 
80  // index: (0..31: 16*isFWD + 8*isISO + 4* isRPC + nr )
81  int m_id;
82 
84 
85  int m_ieta; // region index of central region
86  float m_feta; // fine grain eta inside central region
87 
88  TEtaBits m_eta_select;
89 };
90 
91 #endif
const L1MuGMTMipIsoAU & m_MIAU
int id() const
return identifier
L1MuGMTEtaProjectionUnit(const L1MuGMTMipIsoAU &miau, int id)
constructor
bool isSelected(int idx) const
return eta select bit (idx: 0..13)
const L1MuRegionalCand * m_mu
virtual ~L1MuGMTEtaProjectionUnit()
destructor
void run()
run eta projection unit
void reset()
clear eta projection unit
void print() const
print results after eta projection