CMS 3D CMS Logo

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

#include <TriggerExpressionOperators.h>

Inheritance diagram for triggerExpression::OperatorOr:
triggerExpression::BinaryOperator triggerExpression::Evaluator

Public Member Functions

void dump (std::ostream &out, bool const ignoreMasks=false) const override
 
bool operator() (const Data &data) const override
 
 OperatorOr (Evaluator *arg1, Evaluator *arg2)
 
- Public Member Functions inherited from triggerExpression::BinaryOperator
 BinaryOperator (Evaluator *arg1, Evaluator *arg2)
 
void init (const Data &data) override
 
void mask (Evaluator const &arg) override
 
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 95 of file TriggerExpressionOperators.h.

Constructor & Destructor Documentation

◆ OperatorOr()

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

Definition at line 97 of file TriggerExpressionOperators.h.

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

Member Function Documentation

◆ dump()

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

Implements triggerExpression::Evaluator.

Definition at line 106 of file TriggerExpressionOperators.h.

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

106  {
107  out << '(';
108  m_arg1->dump(out, ignoreMasks);
109  out << " OR ";
110  m_arg2->dump(out, ignoreMasks);
111  out << ')';
112  }

◆ operator()()

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

Implements triggerExpression::Evaluator.

Definition at line 99 of file TriggerExpressionOperators.h.

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

99  {
100  // force the execution of both arguments, otherwise prescalers won't work properly
101  bool r1 = (*m_arg1)(data);
102  bool r2 = (*m_arg2)(data);
103  return r1 or r2;
104  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79