CMS 3D CMS Logo

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

Public Member Functions

bool evaluate (Event const &event) const override
 
void init (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 edm::pathStatusExpression::Evaluator
virtual void setLeft (std::unique_ptr< Evaluator > &&)
 
virtual void setRight (std::unique_ptr< Evaluator > &&)
 
virtual ~Evaluator ()
 

Private Attributes

std::string pathName_
 
EDGetTokenT< PathStatustoken_
 

Additional Inherited Members

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

Detailed Description

Definition at line 98 of file PathStatusFilter.cc.

Constructor & Destructor Documentation

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

Definition at line 100 of file PathStatusFilter.cc.

100  :
101  pathName_(pathName.begin(), pathName.end()) {
102  }

Member Function Documentation

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

Reimplemented from edm::pathStatusExpression::Evaluator.

Definition at line 114 of file PathStatusFilter.cc.

References cmsBatch::handle.

114  {
116  event.getByToken(token_, handle);
117  return handle->accept();
118  }
EDGetTokenT< PathStatus > token_
void edm::pathStatusExpression::Operand::init ( ConsumesCollector iC)
inlineoverridevirtual

Reimplemented from edm::pathStatusExpression::Evaluator.

Definition at line 110 of file PathStatusFilter.cc.

References edm::ConsumesCollector::consumes().

110  {
111  token_ = iC.consumes<PathStatus>(InputTag(pathName_));
112  }
HLTPathStatus PathStatus
Definition: PathStatus.h:7
EDGetTokenT< PathStatus > token_
void edm::pathStatusExpression::Operand::print ( std::ostream &  out,
unsigned int  indentation 
) const
inlineoverridevirtual
EvaluatorType edm::pathStatusExpression::Operand::type ( ) const
inlineoverridevirtual

Member Data Documentation

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

Definition at line 121 of file PathStatusFilter.cc.

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

Definition at line 122 of file PathStatusFilter.cc.