CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtMuonCondition.h
Go to the documentation of this file.
1 #ifndef GlobalTrigger_L1GtMuonCondition_h
2 #define GlobalTrigger_L1GtMuonCondition_h
3 
20 // system include files
21 #include <iosfwd>
22 #include <string>
23 
24 // user include files
25 // base classes
27 
28 // forward declarations
29 class L1GtCondition;
30 class L1GtMuonTemplate;
31 
32 class L1MuGMTCand;
33 
34 class L1GlobalTriggerGTL;
35 
36 // class declaration
38 {
39 
40 public:
41 
45 
48  const int nrL1Mu,
49  const int ifMuEtaNumberBits);
50 
51  // copy constructor
53 
54  // destructor
55  virtual ~L1GtMuonCondition();
56 
57  // assign operator
59 
60 public:
61 
63  const bool evaluateCondition() const;
64 
66  void print(std::ostream& myCout) const;
67 
68 public:
69 
71  inline const L1GtMuonTemplate* gtMuonTemplate() const {
72  return m_gtMuonTemplate;
73  }
74 
76 
78  inline const int gtIfMuEtaNumberBits() const {
79  return m_ifMuEtaNumberBits;
80  }
81 
82  void setGtIfMuEtaNumberBits(const int&);
83 
85  inline const L1GlobalTriggerGTL* gtGTL() const {
86  return m_gtGTL;
87  }
88 
89  void setGtGTL(const L1GlobalTriggerGTL*);
90 
91 private:
92 
94  void copy(const L1GtMuonCondition& cp);
95 
97  const L1MuGMTCand* getCandidate(const int indexCand) const;
98 
100  const bool checkObjectParameter(const int iCondition,
101  const L1MuGMTCand& cand) const;
102 
103 private:
104 
107 
110 
113 
114 };
115 
116 #endif
L1GtMuonCondition & operator=(const L1GtMuonCondition &)
virtual ~L1GtMuonCondition()
void setGtIfMuEtaNumberBits(const int &)
void copy(const L1GtMuonCondition &cp)
copy function for copy constructor and operator=
int m_ifMuEtaNumberBits
number of bits for eta of muon objects
const L1GtMuonTemplate * m_gtMuonTemplate
pointer to a L1GtMuonTemplate
const int gtIfMuEtaNumberBits() const
get / set the number of bits for eta of muon objects
const L1MuGMTCand * getCandidate(const int indexCand) const
load muon candidates
const L1GlobalTriggerGTL * gtGTL() const
get / set the pointer to GTL
const bool checkObjectParameter(const int iCondition, const L1MuGMTCand &cand) const
function to check a single object if it matches a condition
void setGtGTL(const L1GlobalTriggerGTL *)
set the pointer to GTL
void setGtMuonTemplate(const L1GtMuonTemplate *)
const bool evaluateCondition() const
the core function to check if the condition matches
const L1GlobalTriggerGTL * m_gtGTL
pointer to GTL, to be able to get the trigger objects
const L1GtMuonTemplate * gtMuonTemplate() const
get / set the pointer to a L1GtCondition
void print(std::ostream &myCout) const
print condition