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 // $Date: 2007/03/23 18:51:35 $
34 // $Revision: 1.2 $
35 //
36 // Author :
37 // H. Sakulin CERN EP
38 //
39 // Migrated to CMSSW:
40 // I. Mikulec
41 //
42 //--------------------------------------------------
43 #ifndef L1TriggerGlobalMuonTrigger_L1MuGMTCancelOutUnit_h
44 #define L1TriggerGlobalMuonTrigger_L1MuGMTCancelOutUnit_h
45 
46 //---------------
47 // C++ Headers --
48 //---------------
49 
50 #include <vector>
51 
52 //----------------------
53 // Base Class Headers --
54 //----------------------
55 
56 //------------------------------------
57 // Collaborating Class Declarations --
58 //------------------------------------
59 
61 
63 
64 // ---------------------
65 // -- Class Interface --
66 // ---------------------
67 
68 
70 
71  public:
73  L1MuGMTCancelOutUnit(const L1MuGlobalMuonTrigger& gmt, int id);
74 
76  virtual ~L1MuGMTCancelOutUnit();
77 
79  void run();
80 
82  void reset();
83 
85  void print();
86 
88  inline int id() const { return m_id; }
89 
91  const bool cancelMyChipMuon(int idx) const { return m_MyChipCancelbits[idx]; }
92 
94  const bool cancelOtherChipMuon(int idx) const { return m_OtherChipCancelbits[idx]; }
95 
96  private:
97  void decide();
98 
99  private:
100 
102  int m_id;
103 
105  std::vector<bool> m_MyChipCancelbits;
106  std::vector<bool> m_OtherChipCancelbits;
107 };
108 
109 #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) ...