File indexing completed on 2023-03-17 11:09:22
0001 #ifndef HLTrigger_HLTcore_TriggerExpressionConstant_h
0002 #define HLTrigger_HLTcore_TriggerExpressionConstant_h
0003
0004 #include "HLTrigger/HLTcore/interface/TriggerExpressionEvaluator.h"
0005
0006 namespace triggerExpression {
0007
0008 class Data;
0009
0010 class Constant : public Evaluator {
0011 public:
0012 Constant(bool value) : m_value(value) {}
0013
0014 bool operator()(const Data& data) const override { return m_value; }
0015
0016 void dump(std::ostream& out, bool const ignoreMasks = false) const override { out << (m_value ? "TRUE" : "FALSE"); }
0017
0018 private:
0019 bool m_value;
0020 };
0021
0022 }
0023
0024 #endif