CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EnergySumCondition.h
Go to the documentation of this file.
1 #ifndef GlobalTrigger_EnergySumCondition_h
2 #define GlobalTrigger_EnergySumCondition_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 EnergySumTemplate;
29 
30 namespace l1t {
31 
32 class L1Candidate;
33 
34 class GtBoard;
35 
36 // class declaration
38 {
39 
40 public:
41 
45 
47  EnergySumCondition(const GtCondition*, const GtBoard*);
48 
49  // copy constructor
51 
52  // destructor
53  virtual ~EnergySumCondition();
54 
55  // assign operator
57 
58 public:
59 
61  const bool evaluateCondition(const int bxEval) const;
62 
64  void print(std::ostream& myCout) const;
65 
66 public:
67 
69  inline const EnergySumTemplate* gtEnergySumTemplate() const {
70  return m_gtEnergySumTemplate;
71  }
72 
74 
76  inline const GtBoard* getuGtB() const {
77  return m_uGtB;
78  }
79 
80  void setuGtB(const GtBoard*);
81 
82 private:
83 
85  void copy(const EnergySumCondition& cp);
86 
87 private:
88 
91 
93  const GtBoard* m_uGtB;
94 
95 };
96 
97 }
98 #endif
const GtBoard * getuGtB() const
get / set the pointer to uGt GtBoard
const bool evaluateCondition(const int bxEval) const
the core function to check if the condition matches
const EnergySumTemplate * gtEnergySumTemplate() const
get / set the pointer to a L1GtCondition
const EnergySumTemplate * m_gtEnergySumTemplate
pointer to a EnergySumTemplate
EnergySumCondition & operator=(const EnergySumCondition &)
void print(std::ostream &myCout) const
print condition
void setuGtB(const GtBoard *)
set the pointer to uGT GtBoard
const GtBoard * m_uGtB
pointer to uGt GtBoard, to be able to get the trigger objects
void setGtEnergySumTemplate(const EnergySumTemplate *)
void copy(const EnergySumCondition &cp)
copy function for copy constructor and operator=