CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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 
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
L1MuGMTMatcher.h
L1MuGMTCancelOutUnit::m_MyChipCancelbits
std::vector< bool > m_MyChipCancelbits
Definition: L1MuGMTCancelOutUnit.h:100
L1MuGMTCancelOutUnit::decide
void decide()
Definition: L1MuGMTCancelOutUnit.cc:124
L1MuGMTCancelOutUnit::run
void run()
run cancel-out unit
Definition: L1MuGMTCancelOutUnit.cc:66
L1MuGMTCancelOutUnit
Definition: L1MuGMTCancelOutUnit.h:66
L1MuGMTCancelOutUnit::cancelMyChipMuon
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
Definition: L1MuGMTCancelOutUnit.h:87
L1MuGMTCancelOutUnit::~L1MuGMTCancelOutUnit
virtual ~L1MuGMTCancelOutUnit()
destructor
Definition: L1MuGMTCancelOutUnit.cc:57
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
L1MuGMTMatcher
Definition: L1MuGMTMatcher.h:41
L1MuGlobalMuonTrigger
Definition: L1MuGlobalMuonTrigger.h:64
L1MuGMTCancelOutUnit::m_gmt
const L1MuGlobalMuonTrigger & m_gmt
Definition: L1MuGMTCancelOutUnit.h:96
L1MuGMTCancelOutUnit::m_matcher
L1MuGMTMatcher m_matcher
Definition: L1MuGMTCancelOutUnit.h:99
L1MuGMTCancelOutUnit::m_id
int m_id
Definition: L1MuGMTCancelOutUnit.h:97
L1MuGMTCancelOutUnit::cancelOtherChipMuon
const bool cancelOtherChipMuon(int idx) const
return cancel bit for barrel RPC (m_id==2) or forward RPC (m_id==3) muon
Definition: L1MuGMTCancelOutUnit.h:90
L1MuGMTCancelOutUnit::m_OtherChipCancelbits
std::vector< bool > m_OtherChipCancelbits
Definition: L1MuGMTCancelOutUnit.h:101
L1MuGMTCancelOutUnit::reset
void reset()
clear cancel-out unit
Definition: L1MuGMTCancelOutUnit.cc:78
L1MuGMTCancelOutUnit::id
int id() const
return ID (0..DT/CSC in barrel chip, 1..DT/CSC in fwd chip, 2..CSC/bRPC, 3..DT/fRPC)
Definition: L1MuGMTCancelOutUnit.h:84
L1MuGMTCancelOutUnit::print
void print()
print cancel-out bits
Definition: L1MuGMTCancelOutUnit.cc:90
L1MuGMTCancelOutUnit::L1MuGMTCancelOutUnit
L1MuGMTCancelOutUnit(const L1MuGlobalMuonTrigger &gmt, int id)
constructor
Definition: L1MuGMTCancelOutUnit.cc:51