CMS 3D CMS Logo

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 
67 public:
69  L1MuGMTCancelOutUnit(const L1MuGlobalMuonTrigger& gmt, int id);
70 
72  virtual ~L1MuGMTCancelOutUnit();
73 
75  void run();
76 
78  void reset();
79 
81  void print();
82 
84  inline int id() const { return m_id; }
85 
87  const bool cancelMyChipMuon(int idx) const { return m_MyChipCancelbits[idx]; }
88 
90  const bool cancelOtherChipMuon(int idx) const { return m_OtherChipCancelbits[idx]; }
91 
92 private:
93  void decide();
94 
95 private:
97  int m_id;
98 
100  std::vector<bool> m_MyChipCancelbits;
101  std::vector<bool> m_OtherChipCancelbits;
102 };
103 
104 #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) ...