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 
15 // system include files
16 #include <iosfwd>
17 #include <string>
18 
19 // user include files
20 // base classes
22 
24 
25 // forward declarations
26 class GlobalCondition;
27 class MuonTemplate;
28 
29 namespace l1t {
30 
31 class L1MuGMTCand;
32 
33 class GlobalBoard;
34 
35 // class declaration
37 {
38 
39 public:
40 
43  MuCondition();
44 
47  const int nrL1Mu,
48  const int ifMuEtaNumberBits);
49 
50  // copy constructor
51  MuCondition(const MuCondition&);
52 
53  // destructor
54  virtual ~MuCondition();
55 
56  // assign operator
58 
59 public:
60 
62  const bool evaluateCondition(const int bxEval) const;
63 
65  void print(std::ostream& myCout) const;
66 
67 public:
68 
70  inline const MuonTemplate* gtMuonTemplate() const {
71  return m_gtMuonTemplate;
72  }
73 
74  void setGtMuonTemplate(const MuonTemplate*);
75 
77  inline const GlobalBoard* gtGTL() const {
78  return m_gtGTL;
79  }
80 
81  void setGtGTL(const GlobalBoard*);
82 
83 
85  inline const int gtIfMuEtaNumberBits() const {
86  return m_ifMuEtaNumberBits;
87  }
88 
89  void setGtIfMuEtaNumberBits(const int&);
90 
91 
93  inline const int gtCorrParDeltaPhiNrBins() const {
95  }
96 
97  void setGtCorrParDeltaPhiNrBins(const int&);
98 
99 
100 private:
101 
103  void copy(const MuCondition& cp);
104 
106  const l1t::Muon* getCandidate(const int bx, const int indexCand) const;
107 
109  const bool checkObjectParameter(const int iCondition,
110  const l1t::Muon& cand) const;
111 
112 private:
113 
116 
119 
122 
123  // maximum number of bins for the delta phi scales
125 
126 
127 
128 };
129 
130 }
131 #endif
void setGtGTL(const GlobalBoard *)
set the pointer to GTL
Definition: MuCondition.cc:104
const int gtCorrParDeltaPhiNrBins() const
get / set maximum number of bins for the delta phi scales
Definition: MuCondition.h:93
const MuonTemplate * gtMuonTemplate() const
get / set the pointer to a Condition
Definition: MuCondition.h:70
virtual ~MuCondition()
Definition: MuCondition.cc:83
void print(std::ostream &myCout) const
print condition
Definition: MuCondition.cc:516
const bool checkObjectParameter(const int iCondition, const l1t::Muon &cand) const
function to check a single object if it matches a condition
Definition: MuCondition.cc:356
const GlobalBoard * gtGTL() const
get / set the pointer to GTL
Definition: MuCondition.h:77
delete x;
Definition: CaloConfig.h:22
const GlobalBoard * m_gtGTL
pointer to GTL, to be able to get the trigger objects
Definition: MuCondition.h:118
const bool evaluateCondition(const int bxEval) const
the core function to check if the condition matches
Definition: MuCondition.cc:129
const int gtIfMuEtaNumberBits() const
get / set the number of bits for eta of muon objects
Definition: MuCondition.h:85
int m_ifMuEtaNumberBits
number of bits for eta of muon objects
Definition: MuCondition.h:121
unsigned int m_corrParDeltaPhiNrBins
Definition: MuCondition.h:124
const MuonTemplate * m_gtMuonTemplate
pointer to a MuonTemplate
Definition: MuCondition.h:115
void setGtIfMuEtaNumberBits(const int &)
Definition: MuCondition.cc:112
Definition: Muon.h:16
void setGtCorrParDeltaPhiNrBins(const int &)
Definition: MuCondition.cc:120
void copy(const MuCondition &cp)
copy function for copy constructor and operator=
Definition: MuCondition.cc:61
void setGtMuonTemplate(const MuonTemplate *)
Definition: MuCondition.cc:97
const l1t::Muon * getCandidate(const int bx, const int indexCand) const
load muon candidates
Definition: MuCondition.cc:342
MuCondition & operator=(const MuCondition &)
Definition: MuCondition.cc:90