test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1MuGMTCancelOutUnit.h
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
32 //
33 //
34 // Author :
35 // H. Sakulin CERN EP
36 //
37 // Migrated to CMSSW:
38 // I. Mikulec
39 //
40 //--------------------------------------------------
41 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTCancelOutUnit_h
42 #define L1TriggerGlobalMuonTrigger_L1MuGMTCancelOutUnit_h
43 
44 //---------------
45 // C++ Headers --
46 //---------------
47 
48 #include <vector>
49 
50 //----------------------
51 // Base Class Headers --
52 //----------------------
53 
54 //------------------------------------
55 // Collaborating Class Declarations --
56 //------------------------------------
57 
59 
61 
62 // ---------------------
63 // -- Class Interface --
64 // ---------------------
65 
66 
68 
69  public:
71  L1MuGMTCancelOutUnit(const L1MuGlobalMuonTrigger& gmt, int id);
72 
74  virtual ~L1MuGMTCancelOutUnit();
75 
77  void run();
78 
80  void reset();
81 
83  void print();
84 
86  inline int id() const { return m_id; }
87 
89  const bool cancelMyChipMuon(int idx) const { return m_MyChipCancelbits[idx]; }
90 
92  const bool cancelOtherChipMuon(int idx) const { return m_OtherChipCancelbits[idx]; }
93 
94  private:
95  void decide();
96 
97  private:
98 
100  int m_id;
101 
103  std::vector<bool> m_MyChipCancelbits;
104  std::vector<bool> m_OtherChipCancelbits;
105 };
106 
107 #endif
void reset()
clear cancel-out unit
void print()
print cancel-out bits
const L1MuGlobalMuonTrigger & m_gmt
std::vector< bool > m_MyChipCancelbits
const bool cancelMyChipMuon(int idx) const
return cancel bit for DT (m_id==0 || m_id==3) or CSC (m_id==1 || m_id==2) muon
virtual ~L1MuGMTCancelOutUnit()
destructor
L1MuGMTCancelOutUnit(const L1MuGlobalMuonTrigger &gmt, int id)
constructor
const bool cancelOtherChipMuon(int idx) const
return cancel bit for barrel RPC (m_id==2) or forward RPC (m_id==3) muon
std::vector< bool > m_OtherChipCancelbits
void run()
run cancel-out unit
int id() const
return ID (0..DT/CSC in barrel chip, 1..DT/CSC in fwd chip, 2..CSC/bRPC, 3..DT/fRPC) ...