CMS 3D CMS Logo

MuCondition.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_MuCondition_h
2 #define L1Trigger_L1TGlobal_MuCondition_h
3 
16 // system include files
17 #include <iosfwd>
18 #include <string>
19 
20 // user include files
21 // base classes
23 
25 
26 // forward declarations
27 class GlobalCondition;
28 class MuonTemplate;
29 
30 namespace l1t {
31 
32 class L1MuGMTCand;
33 
34 class GlobalBoard;
35 
36 // class declaration
38 {
39 
40 public:
41 
44  MuCondition();
45 
48  const int nrL1Mu,
49  const int ifMuEtaNumberBits);
50 
51  // copy constructor
52  MuCondition(const MuCondition&);
53 
54  // destructor
55  ~MuCondition() override;
56 
57  // assign operator
59 
60 public:
61 
63  const bool evaluateCondition(const int bxEval) const override;
64 
66  void print(std::ostream& myCout) const override;
67 
68 public:
69 
71  inline const MuonTemplate* gtMuonTemplate() const {
72  return m_gtMuonTemplate;
73  }
74 
75  void setGtMuonTemplate(const MuonTemplate*);
76 
78  inline const GlobalBoard* gtGTL() const {
79  return m_gtGTL;
80  }
81 
82  void setGtGTL(const GlobalBoard*);
83 
84 
86  inline const int gtIfMuEtaNumberBits() const {
87  return m_ifMuEtaNumberBits;
88  }
89 
90  void setGtIfMuEtaNumberBits(const int&);
91 
92 
94  inline const int gtCorrParDeltaPhiNrBins() const {
96  }
97 
98  void setGtCorrParDeltaPhiNrBins(const int&);
99 
100 
101 private:
102 
104  void copy(const MuCondition& cp);
105 
107  const l1t::Muon* getCandidate(const int bx, const int indexCand) const;
108 
110  const bool checkObjectParameter(const int iCondition,
111  const l1t::Muon& cand, const unsigned int index) const;
112 
113 private:
114 
117 
120 
123 
124  // maximum number of bins for the delta phi scales
126 
127 
128 
129 };
130 
131 }
132 #endif
void setGtGTL(const GlobalBoard *)
set the pointer to GTL
Definition: MuCondition.cc:105
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
Definition: MuCondition.cc:130
~MuCondition() override
Definition: MuCondition.cc:84
const int gtCorrParDeltaPhiNrBins() const
get / set maximum number of bins for the delta phi scales
Definition: MuCondition.h:94
void print(std::ostream &myCout) const override
print condition
Definition: MuCondition.cc:524
const MuonTemplate * gtMuonTemplate() const
get / set the pointer to a Condition
Definition: MuCondition.h:71
const GlobalBoard * gtGTL() const
get / set the pointer to GTL
Definition: MuCondition.h:78
delete x;
Definition: CaloConfig.h:22
const GlobalBoard * m_gtGTL
pointer to GTL, to be able to get the trigger objects
Definition: MuCondition.h:119
const int gtIfMuEtaNumberBits() const
get / set the number of bits for eta of muon objects
Definition: MuCondition.h:86
int m_ifMuEtaNumberBits
number of bits for eta of muon objects
Definition: MuCondition.h:122
unsigned int m_corrParDeltaPhiNrBins
Definition: MuCondition.h:125
const MuonTemplate * m_gtMuonTemplate
pointer to a MuonTemplate
Definition: MuCondition.h:116
void setGtIfMuEtaNumberBits(const int &)
Definition: MuCondition.cc:113
Definition: Muon.h:16
void setGtCorrParDeltaPhiNrBins(const int &)
Definition: MuCondition.cc:121
void copy(const MuCondition &cp)
copy function for copy constructor and operator=
Definition: MuCondition.cc:62
void setGtMuonTemplate(const MuonTemplate *)
Definition: MuCondition.cc:98
const bool checkObjectParameter(const int iCondition, const l1t::Muon &cand, const unsigned int index) const
function to check a single object if it matches a condition
Definition: MuCondition.cc:357
const l1t::Muon * getCandidate(const int bx, const int indexCand) const
load muon candidates
Definition: MuCondition.cc:343
MuCondition & operator=(const MuCondition &)
Definition: MuCondition.cc:91