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 public:
37 
39  L1GtCastorCondition(const L1GtCondition *, const bool result);
40 
41  // copy constructor
43 
44  // destructor
45  ~L1GtCastorCondition() override;
46 
47  // assign operator
49 
50 public:
52  const bool evaluateCondition() const override;
53 
55  void print(std::ostream &myCout) const override;
56 
57 public:
59  inline const L1GtCastorTemplate *gtCastorTemplate() const { return m_gtCastorTemplate; }
60 
62 
64  inline const bool conditionResult() const { return m_conditionResult; }
65 
66  inline void setConditionResult(const bool result) { m_conditionResult = result; }
67 
68 private:
70  void copy(const L1GtCastorCondition &cp);
71 
72 private:
75 
78 };
79 
80 #endif
bool m_conditionResult
condition result
const L1GtCastorTemplate * m_gtCastorTemplate
pointer to a L1GtCastorTemplate
const L1GtCastorTemplate * gtCastorTemplate() const
get / set the pointer to a L1GtCondition
void copy(const L1GtCastorCondition &cp)
copy function for copy constructor and operator=
const bool evaluateCondition() const override
the core function to check if the condition matches
void setConditionResult(const bool result)
L1GtCastorCondition & operator=(const L1GtCastorCondition &)
void print(std::ostream &myCout) const override
print condition
const bool conditionResult() const
get / set the result
void setGtCastorTemplate(const L1GtCastorTemplate *)