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

enum UnaryOP::OP
strong
Enumerator
NEG 

Definition at line 87 of file TrackerDetIdSelector.h.

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

Constructor & Destructor Documentation

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

Definition at line 89 of file TrackerDetIdSelector.h.

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

Member Function Documentation

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

Definition at line 91 of file TrackerDetIdSelector.h.

References ExpressionAST::evaluate().

Referenced by Accessor::operator()().

91  {
92  switch (op) {
93  case OP::NEG:
94  return !subject.evaluate(detId, trackerTopology);
95  }
96  return 0;
97  }
enum UnaryOP::OP op
int evaluate(const DetId &detId, const TrackerTopology &trackerTopology) const
ExpressionAST subject

Member Data Documentation

enum UnaryOP::OP UnaryOP::op

Referenced by WalkAST::operator()().

ExpressionAST UnaryOP::subject

Definition at line 88 of file TrackerDetIdSelector.h.

Referenced by WalkAST::operator()().