CMS 3D CMS Logo

List of all members | Public Member Functions
triggerExpression::OperatorMasking Class Reference

#include <TriggerExpressionOperators.h>

Inheritance diagram for triggerExpression::OperatorMasking:
triggerExpression::BinaryOperator triggerExpression::Evaluator

Public Member Functions

void dump (std::ostream &out, bool const ignoreMasks=false) const override
 
void init (const Data &data) override
 
void mask (Evaluator const &arg) override
 
bool operator() (const Data &data) const override
 
 OperatorMasking (Evaluator *arg1, Evaluator *arg2)
 
- Public Member Functions inherited from triggerExpression::BinaryOperator
 BinaryOperator (Evaluator *arg1, Evaluator *arg2)
 
std::vector< std::string > patterns () const override
 
- Public Member Functions inherited from triggerExpression::Evaluator
virtual void disableMasks ()
 
virtual void enableMasks ()
 
 Evaluator ()=default
 
virtual bool masksEnabled () const
 
virtual std::vector< std::pair< std::string, unsigned int > > triggers () const
 
virtual ~Evaluator ()=default
 

Additional Inherited Members

- Protected Attributes inherited from triggerExpression::BinaryOperator
std::unique_ptr< Evaluatorm_arg1
 
std::unique_ptr< Evaluatorm_arg2
 

Detailed Description

Definition at line 135 of file TriggerExpressionOperators.h.

Constructor & Destructor Documentation

◆ OperatorMasking()

triggerExpression::OperatorMasking::OperatorMasking ( Evaluator arg1,
Evaluator arg2 
)
inline

Definition at line 137 of file TriggerExpressionOperators.h.

137 : BinaryOperator(arg1, arg2) {}
BinaryOperator(Evaluator *arg1, Evaluator *arg2)

Member Function Documentation

◆ dump()

void triggerExpression::OperatorMasking::dump ( std::ostream &  out,
bool const  ignoreMasks = false 
) const
inlineoverridevirtual

Implements triggerExpression::Evaluator.

Definition at line 151 of file TriggerExpressionOperators.h.

References triggerExpression::BinaryOperator::m_arg1, triggerExpression::BinaryOperator::m_arg2, and MillePedeFileConverter_cfg::out.

151  {
152  out << '(';
153  // ignore masks on the first Evaluator to dump the full logical expression
154  m_arg1->dump(out, true);
155  out << " MASKING ";
156  m_arg2->dump(out, ignoreMasks);
157  out << ')';
158  }

◆ init()

void triggerExpression::OperatorMasking::init ( const Data data)
inlineoverridevirtual

Reimplemented from triggerExpression::BinaryOperator.

Definition at line 141 of file TriggerExpressionOperators.h.

References data, triggerExpression::BinaryOperator::m_arg1, and triggerExpression::BinaryOperator::m_arg2.

141  {
142  m_arg1->init(data);
143  m_arg2->init(data);
144  m_arg1->mask(*m_arg2);
145  }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80

◆ mask()

void triggerExpression::OperatorMasking::mask ( Evaluator const &  arg)
inlineoverridevirtual

Reimplemented from triggerExpression::BinaryOperator.

Definition at line 149 of file TriggerExpressionOperators.h.

References triggerExpression::BinaryOperator::m_arg1.

149 { m_arg1->mask(arg); }
A arg
Definition: Factorize.h:31

◆ operator()()

bool triggerExpression::OperatorMasking::operator() ( const Data data) const
inlineoverridevirtual

Implements triggerExpression::Evaluator.

Definition at line 139 of file TriggerExpressionOperators.h.

References data, and triggerExpression::BinaryOperator::m_arg1.

139 { return (*m_arg1)(data); }
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80