CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CaloCondition.h
Go to the documentation of this file.
1 #ifndef GlobalTrigger_CaloCondition_h
2 #define GlobalTrigger_CaloCondition_h
3 
18 // system include files
19 #include <iosfwd>
20 #include <string>
21 
22 // user include files
23 // base classes
25 
26 // forward declarations
27 class GtCondition;
28 class CaloTemplate;
29 
30 namespace l1t {
31 
32 class L1Candidate;
33 
34 class GtBoard;
35 
36 // class declaration
38 {
39 
40 public:
41 
44  CaloCondition();
45 
47  CaloCondition(const GtCondition*, const GtBoard*,
48  const int nrL1EG,
49  const int nrL1Jet,
50  const int nrL1Tau,
51  const int ifCaloEtaNumberBits);
52 
53  // copy constructor
55 
56  // destructor
57  virtual ~CaloCondition();
58 
59  // assign operator
61 
62 public:
63 
65  const bool evaluateCondition(const int bxEval) const;
66 
68  void print(std::ostream& myCout) const;
69 
70 public:
71 
73  inline const CaloTemplate* gtCaloTemplate() const {
74  return m_gtCaloTemplate;
75  }
76 
77  void setGtCaloTemplate(const CaloTemplate*);
78 
80  inline const GtBoard* getuGtB() const {
81  return m_uGtB;
82  }
83 
84  void setuGtB(const GtBoard*);
85 
86 
88  inline const int gtIfCaloEtaNumberBits() const {
89  return m_ifCaloEtaNumberBits;
90  }
91 
92  void setGtIfCaloEtaNumberBits(const int&);
93 
95  inline const int gtCorrParDeltaPhiNrBins() const {
97  }
98 
99  void setGtCorrParDeltaPhiNrBins(const int&);
100 
101 private:
102 
104  void copy(const CaloCondition& cp);
105 
107  const l1t::L1Candidate* getCandidate(const int bx, const int indexCand) const;
108 
110  const bool
111  checkObjectParameter(const int iCondition, const l1t::L1Candidate& cand) const;
112 
113 private:
114 
117 
119  const GtBoard* m_uGtB;
120 
123 
124  // maximum number of bins for the delta phi scales
126 
127 };
128 
129 }
130 #endif
const CaloTemplate * gtCaloTemplate() const
get / set the pointer to a Condition
Definition: CaloCondition.h:73
const GtBoard * m_uGtB
pointer to uGt GtBoard, to be able to get the trigger objects
unsigned int m_corrParDeltaPhiNrBins
const int gtCorrParDeltaPhiNrBins() const
get / set maximum number of bins for the delta phi scales
Definition: CaloCondition.h:95
void setGtCorrParDeltaPhiNrBins(const int &)
void print(std::ostream &myCout) const
print condition
void setGtIfCaloEtaNumberBits(const int &)
void setGtCaloTemplate(const CaloTemplate *)
const int gtIfCaloEtaNumberBits() const
get / set the number of bits for eta of calorimeter objects
Definition: CaloCondition.h:88
void setuGtB(const GtBoard *)
set the pointer to uGT GtBoard
const l1t::L1Candidate * getCandidate(const int bx, const int indexCand) const
load calo candidates
const GtBoard * getuGtB() const
get / set the pointer to uGt GtBoard
Definition: CaloCondition.h:80
virtual ~CaloCondition()
CaloCondition & operator=(const CaloCondition &)
const bool checkObjectParameter(const int iCondition, const l1t::L1Candidate &cand) const
function to check a single object if it matches a condition
void copy(const CaloCondition &cp)
copy function for copy constructor and operator=
int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
const bool evaluateCondition(const int bxEval) const
the core function to check if the condition matches
const CaloTemplate * m_gtCaloTemplate
pointer to a CaloTemplate