CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
pathStatusExpression::Operand Class Reference
Inheritance diagram for pathStatusExpression::Operand:
pathStatusExpression::Evaluator

Public Member Functions

bool evaluate (edm::Event const &event) const override
 
void init (edm::ConsumesCollector &iC) override
 
 Operand (std::vector< char > const &pathName)
 
void print (std::ostream &out, unsigned int indentation) const override
 
EvaluatorType type () const override
 
- Public Member Functions inherited from pathStatusExpression::Evaluator
virtual const char * pathName () const
 
virtual void setLeft (std::unique_ptr< Evaluator > &&)
 
virtual void setRight (std::unique_ptr< Evaluator > &&)
 
virtual ~Evaluator ()
 

Private Attributes

std::string pathName_
 
edm::EDGetTokenT< edm::PathStatustoken_
 

Additional Inherited Members

- Public Types inherited from pathStatusExpression::Evaluator
enum  EvaluatorType {
  Name, Not, And, Or,
  BeginParen
}
 

Detailed Description

Definition at line 64 of file L1GTAlgoBlockProducer.cc.

Constructor & Destructor Documentation

◆ Operand()

pathStatusExpression::Operand::Operand ( std::vector< char > const &  pathName)
inline

Definition at line 66 of file L1GTAlgoBlockProducer.cc.

66 : pathName_(pathName.begin(), pathName.end()) {}
virtual const char * pathName() const

Member Function Documentation

◆ evaluate()

bool pathStatusExpression::Operand::evaluate ( edm::Event const &  event) const
inlineoverridevirtual

Reimplemented from pathStatusExpression::Evaluator.

Definition at line 76 of file L1GTAlgoBlockProducer.cc.

References token_.

76 { return event.get(token_).accept(); }
edm::EDGetTokenT< edm::PathStatus > token_

◆ init()

void pathStatusExpression::Operand::init ( edm::ConsumesCollector iC)
inlineoverridevirtual

Reimplemented from pathStatusExpression::Evaluator.

Definition at line 74 of file L1GTAlgoBlockProducer.cc.

References edm::ConsumesCollector::consumes(), ProducerED_cfi::InputTag, pathName_, and token_.

EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< edm::PathStatus > token_
HLTPathStatus PathStatus
Definition: PathStatus.h:7

◆ print()

void pathStatusExpression::Operand::print ( std::ostream &  out,
unsigned int  indentation 
) const
inlineoverridevirtual

◆ type()

EvaluatorType pathStatusExpression::Operand::type ( ) const
inlineoverridevirtual

Member Data Documentation

◆ pathName_

std::string pathStatusExpression::Operand::pathName_
private

Definition at line 79 of file L1GTAlgoBlockProducer.cc.

Referenced by init(), and print().

◆ token_

edm::EDGetTokenT<edm::PathStatus> pathStatusExpression::Operand::token_
private

Definition at line 80 of file L1GTAlgoBlockProducer.cc.

Referenced by evaluate(), and init().