CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuGMTPhiProjectionUnit.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 
12 //
13 // $Date: 2006/05/15 13:56:02 $
14 // $Revision: 1.1 $
15 //
16 // Author :
17 // H. Sakulin CERN EP
18 //
19 // Migrated to CMSSW:
20 // I. Mikulec
21 //
22 //--------------------------------------------------
23 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTPhiProjectionUnit_h
24 #define L1TriggerGlobalMuonTrigger_L1MuGMTPhiProjectionUnit_h
25 
26 //---------------
27 // C++ Headers --
28 //---------------
29 
30 #include <vector>
31 #include <bitset>
32 
33 //----------------------
34 // Base Class Headers --
35 //----------------------
36 
37 
38 //------------------------------------
39 // Collaborating Class Declarations --
40 //------------------------------------
41 
45 
46 class L1MuGMTMipIsoAU;
47 class L1MuGMTCand;
48 
49 
50 // ---------------------
51 // -- Class Interface --
52 // ---------------------
53 
54 
56 
57  public:
58 
60  L1MuGMTPhiProjectionUnit(const L1MuGMTMipIsoAU& miau, int id);
61 
63  virtual ~L1MuGMTPhiProjectionUnit();
64 
66  void run();
67 
69  void reset();
70 
72  void print() const;
73 
75  inline int id() const { return m_id; }
76 
78  inline bool isSelected(int idx) const { return m_phi_select[idx]; }
79 
80  private:
81 
82  void load();
83 
84  private:
85  typedef std::bitset<18> TPhiBits;
86 
88 
89  // index: (0..31: 16*isFWD + 8*isISO + 4* isRPC + nr )
90  int m_id;
91 
93 
94  int m_iphi; // region index of central region
95  float m_fphi; // fine grain phi inside central region
96 
98 };
99 
100 #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