CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 109 of file TrackerDetIdSelector.h.

Member Enumeration Documentation

enum UnaryOP::OP
strong
Enumerator
NEG 

Definition at line 111 of file TrackerDetIdSelector.h.

112  {
113  NEG
114  } op;
enum UnaryOP::OP op

Constructor & Destructor Documentation

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

Definition at line 116 of file TrackerDetIdSelector.h.

116  :
117  op(op),
119  {
120  }
enum UnaryOP::OP op
ExpressionAST subject

Member Function Documentation

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

Definition at line 122 of file TrackerDetIdSelector.h.

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

Referenced by Accessor::operator()().

123  {
124  switch (op)
125  {
126  case OP::NEG:
127  return !subject.evaluate(detId,trackerTopology);
128  }
129  return 0;
130  }
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 evaluate(), and WalkAST::operator()().

ExpressionAST UnaryOP::subject

Definition at line 115 of file TrackerDetIdSelector.h.

Referenced by evaluate(), and WalkAST::operator()().