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  public:
41  MuCondition();
42 
44  MuCondition(const GlobalCondition*, const GlobalBoard*, const int nrL1Mu, const int ifMuEtaNumberBits);
45 
46  // copy constructor
47  MuCondition(const MuCondition&);
48 
49  // destructor
50  ~MuCondition() override;
51 
52  // assign operator
54 
55  public:
57  const bool evaluateCondition(const int bxEval) const override;
58 
60  void print(std::ostream& myCout) const override;
61 
62  public:
64  inline const MuonTemplate* gtMuonTemplate() const { return m_gtMuonTemplate; }
65 
66  void setGtMuonTemplate(const MuonTemplate*);
67 
69  inline const GlobalBoard* gtGTL() const { return m_gtGTL; }
70 
71  void setGtGTL(const GlobalBoard*);
72 
74  inline const int gtIfMuEtaNumberBits() const { return m_ifMuEtaNumberBits; }
75 
76  void setGtIfMuEtaNumberBits(const int&);
77 
79  inline const int gtCorrParDeltaPhiNrBins() const { return m_corrParDeltaPhiNrBins; }
80 
81  void setGtCorrParDeltaPhiNrBins(const int&);
82 
83  private:
85  void copy(const MuCondition& cp);
86 
88  const l1t::Muon* getCandidate(const int bx, const int indexCand) const;
89 
91  const bool checkObjectParameter(const int iCondition, const l1t::Muon& cand, const unsigned int index) const;
92 
93  private:
96 
99 
102 
103  // maximum number of bins for the delta phi scales
105  };
106 
107 } // namespace l1t
108 #endif
void setGtGTL(const GlobalBoard *)
set the pointer to GTL
Definition: MuCondition.cc:90
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
Definition: MuCondition.cc:103
~MuCondition() override
Definition: MuCondition.cc:76
const int gtCorrParDeltaPhiNrBins() const
get / set maximum number of bins for the delta phi scales
Definition: MuCondition.h:79
void print(std::ostream &myCout) const override
print condition
Definition: MuCondition.cc:484
const MuonTemplate * gtMuonTemplate() const
get / set the pointer to a Condition
Definition: MuCondition.h:64
const GlobalBoard * gtGTL() const
get / set the pointer to GTL
Definition: MuCondition.h:69
delete x;
Definition: CaloConfig.h:22
const GlobalBoard * m_gtGTL
pointer to GTL, to be able to get the trigger objects
Definition: MuCondition.h:98
const int gtIfMuEtaNumberBits() const
get / set the number of bits for eta of muon objects
Definition: MuCondition.h:74
int m_ifMuEtaNumberBits
number of bits for eta of muon objects
Definition: MuCondition.h:101
unsigned int m_corrParDeltaPhiNrBins
Definition: MuCondition.h:104
const MuonTemplate * m_gtMuonTemplate
pointer to a MuonTemplate
Definition: MuCondition.h:95
void setGtIfMuEtaNumberBits(const int &)
Definition: MuCondition.cc:93
Definition: Muon.h:21
void setGtCorrParDeltaPhiNrBins(const int &)
Definition: MuCondition.cc:98
void copy(const MuCondition &cp)
copy function for copy constructor and operator=
Definition: MuCondition.cc:59
void setGtMuonTemplate(const MuonTemplate *)
Definition: MuCondition.cc:87
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:324
const l1t::Muon * getCandidate(const int bx, const int indexCand) const
load muon candidates
Definition: MuCondition.cc:311
MuCondition & operator=(const MuCondition &)
Definition: MuCondition.cc:81