CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1GtCaloCondition.h
Go to the documentation of this file.
1 #ifndef GlobalTrigger_L1GtCaloCondition_h
2 #define GlobalTrigger_L1GtCaloCondition_h
3 
20 // system include files
21 #include <iosfwd>
22 #include <string>
23 
24 // user include files
25 // base classes
27 
28 // forward declarations
29 class L1GtCondition;
30 class L1GtCaloTemplate;
31 
32 class L1GctCand;
33 
34 class L1GlobalTriggerPSB;
35 
36 // class declaration
38 {
39 
40 public:
41 
45 
48  const int nrL1NoIsoEG,
49  const int nrL1IsoEG,
50  const int nrL1CenJet,
51  const int nrL1ForJet,
52  const int nrL1TauJet,
53  const int ifCaloEtaNumberBits);
54 
55  // copy constructor
57 
58  // destructor
59  virtual ~L1GtCaloCondition();
60 
61  // assign operator
63 
64 public:
65 
67  const bool evaluateCondition() const;
68 
70  void print(std::ostream& myCout) const;
71 
72 public:
73 
75  inline const L1GtCaloTemplate* gtCaloTemplate() const {
76  return m_gtCaloTemplate;
77  }
78 
80 
82  inline const int gtIfCaloEtaNumberBits() const {
83  return m_ifCaloEtaNumberBits;
84  }
85 
86  void setGtIfCaloEtaNumberBits(const int&);
87 
89  inline const L1GlobalTriggerPSB* gtPSB() const {
90  return m_gtPSB;
91  }
92 
93  void setGtPSB(const L1GlobalTriggerPSB*);
94 
95 private:
96 
98  void copy(const L1GtCaloCondition& cp);
99 
101  const L1GctCand* getCandidate(const int indexCand) const;
102 
104  const bool
105  checkObjectParameter(const int iCondition, const L1GctCand& cand) const;
106 
107 private:
108 
111 
114 
117 
118 };
119 
120 #endif
int m_ifCaloEtaNumberBits
number of bits for eta of calorimeter objects
void print(std::ostream &myCout) const
print condition
const int gtIfCaloEtaNumberBits() const
get / set the number of bits for eta of calorimeter objects
const L1GlobalTriggerPSB * m_gtPSB
pointer to PSB, to be able to get the trigger objects
const L1GctCand * getCandidate(const int indexCand) const
load calo candidates
void setGtCaloTemplate(const L1GtCaloTemplate *)
const bool checkObjectParameter(const int iCondition, const L1GctCand &cand) const
function to check a single object if it matches a condition
const L1GlobalTriggerPSB * gtPSB() const
get / set the pointer to PSB
const L1GtCaloTemplate * m_gtCaloTemplate
pointer to a L1GtCaloTemplate
L1GtCaloCondition & operator=(const L1GtCaloCondition &)
const L1GtCaloTemplate * gtCaloTemplate() const
get / set the pointer to a L1GtCondition
void setGtIfCaloEtaNumberBits(const int &)
void copy(const L1GtCaloCondition &cp)
copy function for copy constructor and operator=
const bool evaluateCondition() const
the core function to check if the condition matches
void setGtPSB(const L1GlobalTriggerPSB *)
set the pointer to PSB
ABC for GCT EM and jet candidates.
Definition: L1GctCand.h:12