CMS 3D CMS Logo

TriggerExpressionConstant.h
Go to the documentation of this file.
1 #ifndef HLTrigger_HLTfilters_TriggerExpressionConstant_h
2 #define HLTrigger_HLTfilters_TriggerExpressionConstant_h
3 
5 
6 namespace triggerExpression {
7 
8  class Data;
9 
10  class Constant : public Evaluator {
11  public:
13 
14  bool operator()(const Data& data) const override { return m_value; }
15 
16  void init(const Data& data) override {}
17 
18  void dump(std::ostream& out) const override { out << (m_value ? "TRUE" : "FALSE"); }
19 
20  private:
21  bool m_value;
22  };
23 
24 } // namespace triggerExpression
25 
26 #endif // HLTrigger_HLTfilters_TriggerExpressionConstant_h
triggerExpression::Evaluator
Definition: TriggerExpressionEvaluator.h:10
triggerExpression::Constant::Constant
Constant(bool value)
Definition: TriggerExpressionConstant.h:12
triggerExpression::Constant
Definition: TriggerExpressionConstant.h:10
value
Definition: value.py:1
triggerExpression::Data
Definition: TriggerExpressionData.h:22
triggerExpression::Constant::dump
void dump(std::ostream &out) const override
Definition: TriggerExpressionConstant.h:18
triggerExpression::Constant::operator()
bool operator()(const Data &data) const override
Definition: TriggerExpressionConstant.h:14
triggerExpression::Constant::init
void init(const Data &data) override
Definition: TriggerExpressionConstant.h:16
TriggerExpressionEvaluator.h
triggerExpression
Definition: TriggerExpressionConstant.h:6
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
triggerExpression::Constant::m_value
bool m_value
Definition: TriggerExpressionConstant.h:21