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

Member Enumeration Documentation

◆ OP

enum UnaryOP::OP
strong
Enumerator
NEG 

Definition at line 81 of file TrackerDetIdSelector.h.

81 { NEG } op;

Constructor & Destructor Documentation

◆ UnaryOP()

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

Definition at line 83 of file TrackerDetIdSelector.h.

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

Member Function Documentation

◆ evaluate()

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

Definition at line 85 of file TrackerDetIdSelector.h.

85  {
86  switch (op) {
87  case OP::NEG:
88  return !subject.evaluate(detId, trackerTopology);
89  }
90  return 0;
91  }

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

Referenced by evaluate().

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