CMS 3D CMS Logo

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

#include <TriggerExpressionOperators.h>

Inheritance diagram for triggerExpression::OperatorAnd:
triggerExpression::BinaryOperator triggerExpression::Evaluator

Public Member Functions

void dump (std::ostream &out) const override
 
bool operator() (const Data &data) const override
 
 OperatorAnd (Evaluator *arg1, Evaluator *arg2)
 
- Public Member Functions inherited from triggerExpression::BinaryOperator
 BinaryOperator (Evaluator *arg1, Evaluator *arg2)
 
void init (const Data &data) override
 
- Public Member Functions inherited from triggerExpression::Evaluator
 Evaluator ()
 
virtual ~Evaluator ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 51 of file TriggerExpressionOperators.h.

Constructor & Destructor Documentation

◆ OperatorAnd()

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

Definition at line 53 of file TriggerExpressionOperators.h.

53 : BinaryOperator(arg1, arg2) {}

Member Function Documentation

◆ dump()

void triggerExpression::OperatorAnd::dump ( std::ostream &  out) const
inlineoverridevirtual

◆ operator()()

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

Implements triggerExpression::Evaluator.

Definition at line 55 of file TriggerExpressionOperators.h.

55  {
56  // force the execution af both arguments, otherwise precalers won't work properly
57  bool r1 = (*m_arg1)(data);
58  bool r2 = (*m_arg2)(data);
59  return r1 and r2;
60  }

References data, diffTwoXMLs::r1, and diffTwoXMLs::r2.

triggerExpression::BinaryOperator::m_arg1
std::unique_ptr< Evaluator > m_arg1
Definition: TriggerExpressionOperators.h:33
triggerExpression::BinaryOperator::m_arg2
std::unique_ptr< Evaluator > m_arg2
Definition: TriggerExpressionOperators.h:34
triggerExpression::BinaryOperator::BinaryOperator
BinaryOperator(Evaluator *arg1, Evaluator *arg2)
Definition: TriggerExpressionOperators.h:24
diffTwoXMLs.r2
r2
Definition: diffTwoXMLs.py:73
diffTwoXMLs.r1
r1
Definition: diffTwoXMLs.py:53
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31