CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
L1MuGMTPhiProjectionUnit.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 
12 //
13 //
14 // Author :
15 // H. Sakulin CERN EP
16 //
17 // Migrated to CMSSW:
18 // I. Mikulec
19 //
20 //--------------------------------------------------
21 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTPhiProjectionUnit_h
22 #define L1TriggerGlobalMuonTrigger_L1MuGMTPhiProjectionUnit_h
23 
24 //---------------
25 // C++ Headers --
26 //---------------
27 
28 #include <vector>
29 #include <bitset>
30 
31 //----------------------
32 // Base Class Headers --
33 //----------------------
34 
35 //------------------------------------
36 // Collaborating Class Declarations --
37 //------------------------------------
38 
42 
43 class L1MuGMTMipIsoAU;
44 class L1MuGMTCand;
45 
46 // ---------------------
47 // -- Class Interface --
48 // ---------------------
49 
51 public:
53  L1MuGMTPhiProjectionUnit(const L1MuGMTMipIsoAU& miau, int id);
54 
56  virtual ~L1MuGMTPhiProjectionUnit();
57 
59  void run();
60 
62  void reset();
63 
65  void print() const;
66 
68  inline int id() const { return m_id; }
69 
71  inline bool isSelected(int idx) const { return m_phi_select[idx]; }
72 
73 private:
74  void load();
75 
76 private:
77  typedef std::bitset<18> TPhiBits;
78 
80 
81  // index: (0..31: 16*isFWD + 8*isISO + 4* isRPC + nr )
82  int m_id;
83 
85 
86  int m_iphi; // region index of central region
87  float m_fphi; // fine grain phi inside central region
88 
90 };
91 
92 #endif
void print() const
print results after phi projection
virtual ~L1MuGMTPhiProjectionUnit()
destructor
L1MuGMTPhiProjectionUnit(const L1MuGMTMipIsoAU &miau, int id)
constructor
void run()
run phi projection unit
const L1MuGMTMipIsoAU & m_MIAU
void reset()
clear phi projection unit
bool isSelected(int idx) const
return phi select bit (idx: 0..17)
const L1MuRegionalCand * m_mu
int id() const
return identifier