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 
89 };
90 
91 #endif
L1MuGMTEtaProjectionUnit::m_eta_select
TEtaBits m_eta_select
Definition: L1MuGMTEtaProjectionUnit.h:88
L1MuGMTEtaProjectionUnit::id
int id() const
return identifier
Definition: L1MuGMTEtaProjectionUnit.h:67
L1MuGMTEtaProjectionUnit::m_mu
const L1MuRegionalCand * m_mu
Definition: L1MuGMTEtaProjectionUnit.h:83
L1MuGMTEtaProjectionUnit::m_ieta
int m_ieta
Definition: L1MuGMTEtaProjectionUnit.h:85
charmTagsComputerCvsB_cfi.idx
idx
Definition: charmTagsComputerCvsB_cfi.py:108
L1MuGMTCand
Definition: L1MuGMTCand.h:39
L1MuRegionalCand.h
L1MuGMTMipIsoAU
Definition: L1MuGMTMipIsoAU.h:51
L1MuGMTMatrix.h
L1MuGMTEtaProjectionUnit::m_feta
float m_feta
Definition: L1MuGMTEtaProjectionUnit.h:86
L1MuRegionalCand
Definition: L1MuRegionalCand.h:26
L1MuGMTEtaProjectionUnit::isSelected
bool isSelected(int idx) const
return eta select bit (idx: 0..13)
Definition: L1MuGMTEtaProjectionUnit.h:70
L1MuGMTEtaProjectionUnit::reset
void reset()
clear eta projection unit
Definition: L1MuGMTEtaProjectionUnit.cc:107
L1MuGMTEtaProjectionUnit::m_MIAU
const L1MuGMTMipIsoAU & m_MIAU
Definition: L1MuGMTEtaProjectionUnit.h:78
L1MuGMTConfig.h
L1MuGMTEtaProjectionUnit::TEtaBits
std::bitset< 14 > TEtaBits
Definition: L1MuGMTEtaProjectionUnit.h:76
L1MuGMTEtaProjectionUnit::print
void print() const
print results after eta projection
Definition: L1MuGMTEtaProjectionUnit.cc:117
L1MuGMTEtaProjectionUnit::run
void run()
run eta projection unit
Definition: L1MuGMTEtaProjectionUnit.cc:64
L1MuGMTEtaProjectionUnit::load
void load()
Definition: L1MuGMTEtaProjectionUnit.cc:128
L1MuGMTEtaProjectionUnit::L1MuGMTEtaProjectionUnit
L1MuGMTEtaProjectionUnit(const L1MuGMTMipIsoAU &miau, int id)
constructor
Definition: L1MuGMTEtaProjectionUnit.cc:49
L1MuGMTEtaProjectionUnit
Definition: L1MuGMTEtaProjectionUnit.h:49
L1MuGMTEtaProjectionUnit::m_id
int m_id
Definition: L1MuGMTEtaProjectionUnit.h:81
L1MuGMTEtaProjectionUnit::~L1MuGMTEtaProjectionUnit
virtual ~L1MuGMTEtaProjectionUnit()
destructor
Definition: L1MuGMTEtaProjectionUnit.cc:55