CMS 3D CMS Logo

L1GtCastorCondition.h
Go to the documentation of this file.
1 #ifndef GlobalTrigger_L1GtCastorCondition_h
2 #define GlobalTrigger_L1GtCastorCondition_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 L1GtCondition;
29 class L1GtCastorTemplate;
30 
31 // class declaration
33 
34 public:
38 
40  L1GtCastorCondition(const L1GtCondition *, const bool result);
41 
42  // copy constructor
44 
45  // destructor
46  ~L1GtCastorCondition() override;
47 
48  // assign operator
50 
51 public:
53  const bool evaluateCondition() const override;
54 
56  void print(std::ostream &myCout) const override;
57 
58 public:
60  inline const L1GtCastorTemplate *gtCastorTemplate() const {
61  return m_gtCastorTemplate;
62  }
63 
65 
67  inline const bool conditionResult() const { return m_conditionResult; }
68 
69  inline void setConditionResult(const bool result) {
71  }
72 
73 private:
75  void copy(const L1GtCastorCondition &cp);
76 
77 private:
80 
83 };
84 
85 #endif
bool m_conditionResult
condition result
const L1GtCastorTemplate * m_gtCastorTemplate
pointer to a L1GtCastorTemplate
void copy(const L1GtCastorCondition &cp)
copy function for copy constructor and operator=
void print(std::ostream &myCout) const override
print condition
void setConditionResult(const bool result)
const L1GtCastorTemplate * gtCastorTemplate() const
get / set the pointer to a L1GtCondition
L1GtCastorCondition & operator=(const L1GtCastorCondition &)
void setGtCastorTemplate(const L1GtCastorTemplate *)
const bool evaluateCondition() const override
the core function to check if the condition matches
const bool conditionResult() const
get / set the result