CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
UnaryOP Struct Reference

#include <TrackerDetIdSelector.h>

Public Types

enum  OP { OP::NEG }
 

Public Member Functions

int evaluate (const DetId &detId, const TrackerTopology &trackerTopology) const
 
 UnaryOP (OP op, ExpressionAST const &subject)
 

Public Attributes

enum UnaryOP::OP op
 
ExpressionAST subject
 

Detailed Description

Definition at line 104 of file TrackerDetIdSelector.h.

Member Enumeration Documentation

◆ OP

enum UnaryOP::OP
strong
Enumerator
NEG 

Definition at line 105 of file TrackerDetIdSelector.h.

105 { NEG } op;
enum UnaryOP::OP op

Constructor & Destructor Documentation

◆ UnaryOP()

UnaryOP::UnaryOP ( OP  op,
ExpressionAST const &  subject 
)
inline

Definition at line 107 of file TrackerDetIdSelector.h.

107 : op(op), subject(subject) {}
enum UnaryOP::OP op
ExpressionAST subject

Member Function Documentation

◆ evaluate()

int UnaryOP::evaluate ( const DetId detId,
const TrackerTopology trackerTopology 
) const
inline

Definition at line 109 of file TrackerDetIdSelector.h.

References ExpressionAST::evaluate(), NEG, op, and subject.

Referenced by Accessor::operator()().

109  {
110  switch (op) {
111  case OP::NEG:
112  return !subject.evaluate(detId, trackerTopology);
113  }
114  return 0;
115  }
enum UnaryOP::OP op
ExpressionAST subject
int evaluate(const DetId &detId, const TrackerTopology &trackerTopology) const

Member Data Documentation

◆ op

enum UnaryOP::OP UnaryOP::op

Referenced by evaluate().

◆ subject

ExpressionAST UnaryOP::subject

Definition at line 106 of file TrackerDetIdSelector.h.

Referenced by evaluate().