CMS 3D CMS Logo

CaloCondition.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TGlobal_CaloCondition_h
2 #define L1Trigger_L1TGlobal_CaloCondition_h
3 
19 // system include files
20 #include <iosfwd>
21 #include <string>
22 
23 // user include files
24 // base classes
26 
27 // forward declarations
28 class GlobalCondition;
29 class CaloTemplate;
30 
31 namespace l1t {
32 
33 class L1Candidate;
34 
35 class GlobalBoard;
36 
37 // class declaration
39 {
40 
41 public:
42 
45  CaloCondition();
46 
49  const int nrL1EG,
50  const int nrL1Jet,
51  const int nrL1Tau,
52  const int ifCaloEtaNumberBits);
53 
54  // copy constructor
56 
57  // destructor
58  ~CaloCondition() override;
59 
60  // assign operator
62 
63 public:
64 
66  const bool evaluateCondition(const int bxEval) const override;
67 
69  void print(std::ostream& myCout) const override;
70 
71 public:
72 
74  inline const CaloTemplate* gtCaloTemplate() const {
75  return m_gtCaloTemplate;
76  }
77 
78  void setGtCaloTemplate(const CaloTemplate*);
79 
81  inline const GlobalBoard* getuGtB() const {
82  return m_uGtB;
83  }
84 
85  void setuGtB(const GlobalBoard*);
86 
87 
89  inline const int gtIfCaloEtaNumberBits() const {
90  return m_ifCaloEtaNumberBits;
91  }
92 
93  void setGtIfCaloEtaNumberBits(const int&);
94 
96  inline const int gtCorrParDeltaPhiNrBins() const {
98  }
99 
100  void setGtCorrParDeltaPhiNrBins(const int&);
101 
102 private:
103 
105  void copy(const CaloCondition& cp);
106 
108  const l1t::L1Candidate* getCandidate(const int bx, const int indexCand) const;
109 
111  const bool
112  checkObjectParameter(const int iCondition, const l1t::L1Candidate& cand, const unsigned int index) const;
113 
114 private:
115 
118 
121 
124 
125  // maximum number of bins for the delta phi scales
127 
128 };
129 
130 }
131 #endif
const bool evaluateCondition(const int bxEval) const override
the core function to check if the condition matches
const CaloTemplate * gtCaloTemplate() const
get / set the pointer to a Condition
Definition: CaloCondition.h:74
unsigned int m_corrParDeltaPhiNrBins
const int gtCorrParDeltaPhiNrBins() const
get / set maximum number of bins for the delta phi scales
Definition: CaloCondition.h:96
void setGtCorrParDeltaPhiNrBins(const int &)
const bool checkObjectParameter(const int iCondition, const l1t::L1Candidate &cand, const unsigned int index) const
function to check a single object if it matches a condition
void setGtIfCaloEtaNumberBits(const int &)
delete x;
Definition: CaloConfig.h:22
void setGtCaloTemplate(const CaloTemplate *)
const int gtIfCaloEtaNumberBits() const
get / set the number of bits for eta of calorimeter objects
Definition: CaloCondition.h:89
const GlobalBoard * m_uGtB
pointer to uGt GlobalBoard, to be able to get the trigger objects
void setuGtB(const GlobalBoard *)
set the pointer to uGT GlobalBoard
~CaloCondition() override
const l1t::L1Candidate * getCandidate(const int bx, const int indexCand) const
load calo candidates
void print(std::ostream &myCout) const override
print condition
CaloCondition & operator=(const CaloCondition &)
void copy(const CaloCondition &cp)
copy function for copy constructor and operator=
const GlobalBoard * getuGtB() const
get / set the pointer to uGt GlobalBoard
Definition: CaloCondition.h:81
int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
const CaloTemplate * m_gtCaloTemplate
pointer to a CaloTemplate