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 86 of file TrackerDetIdSelector.h.

Member Enumeration Documentation

◆ OP

enum UnaryOP::OP
strong
Enumerator
NEG 

Definition at line 87 of file TrackerDetIdSelector.h.

87 { NEG } op;

Constructor & Destructor Documentation

◆ UnaryOP()

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

Definition at line 89 of file TrackerDetIdSelector.h.

89 : op(op), subject(subject) {}

Member Function Documentation

◆ evaluate()

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

Definition at line 91 of file TrackerDetIdSelector.h.

91  {
92  switch (op) {
93  case OP::NEG:
94  return !subject.evaluate(detId, trackerTopology);
95  }
96  return 0;
97  }

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

Referenced by Accessor::operator()().

Member Data Documentation

◆ op

enum UnaryOP::OP UnaryOP::op

Referenced by evaluate().

◆ subject

ExpressionAST UnaryOP::subject

Definition at line 88 of file TrackerDetIdSelector.h.

Referenced by evaluate().

UnaryOP::subject
ExpressionAST subject
Definition: TrackerDetIdSelector.h:88
UnaryOP::op
enum UnaryOP::OP op
ExpressionAST::evaluate
int evaluate(const DetId &detId, const TrackerTopology &trackerTopology) const
Definition: TrackerDetIdSelector.h:280
UnaryOP::OP::NEG