CMS 3D CMS Logo

Classes | Macros | Functions
TrackerDetIdSelector.cc File Reference
#include "FastSimulation/TrackingRecHitProducer/interface/TrackerDetIdSelector.h"
#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
#include <boost/config/warning_disable.hpp>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/qi_rule.hpp>
#include <boost/spirit/include/qi_grammar.hpp>
#include <boost/spirit/include/phoenix.hpp>

Go to the source code of this file.

Classes

struct  TrackerDetIdSelectorGrammar< ITERATOR >
 

Macros

#define DETIDFCT(NAME)   NAME, [](const TrackerTopology& trackerTopology, const DetId& detId) -> int
 
#define TOPOFCT(NAME)   #NAME, [](const TrackerTopology& trackerTopology, const DetId& detId) -> int { return trackerTopology.NAME(detId); }
 

Functions

ExpressionAST operator!= (ExpressionAST const &lhs, ExpressionAST const &rhs)
 
ExpressionAST operator&& (ExpressionAST const &lhs, ExpressionAST const &rhs)
 
ExpressionAST operator< (ExpressionAST const &lhs, ExpressionAST const &rhs)
 
ExpressionAST operator<= (ExpressionAST const &lhs, ExpressionAST const &rhs)
 
ExpressionAST operator== (ExpressionAST const &lhs, ExpressionAST const &rhs)
 
ExpressionAST operator> (ExpressionAST const &lhs, ExpressionAST const &rhs)
 
ExpressionAST operator>= (ExpressionAST const &lhs, ExpressionAST const &rhs)
 
ExpressionAST operator|| (ExpressionAST const &lhs, ExpressionAST const &rhs)
 

Macro Definition Documentation

◆ DETIDFCT

#define DETIDFCT (   NAME)    NAME, [](const TrackerTopology& trackerTopology, const DetId& detId) -> int

Definition at line 11 of file TrackerDetIdSelector.cc.

◆ TOPOFCT

#define TOPOFCT (   NAME)    #NAME, [](const TrackerTopology& trackerTopology, const DetId& detId) -> int { return trackerTopology.NAME(detId); }

Definition at line 13 of file TrackerDetIdSelector.cc.

Function Documentation

◆ operator!=()

ExpressionAST operator!= ( ExpressionAST const &  lhs,
ExpressionAST const &  rhs 
)

Definition at line 108 of file TrackerDetIdSelector.cc.

108  {
110  return ast;
111 }

References BinaryOP::NOT_EQUAL.

◆ operator&&()

ExpressionAST operator&& ( ExpressionAST const &  lhs,
ExpressionAST const &  rhs 
)

Definition at line 113 of file TrackerDetIdSelector.cc.

113  {
114  ExpressionAST ast = BinaryOP(BinaryOP::OP::AND, lhs, rhs);
115  return ast;
116 }

References BinaryOP::AND.

◆ operator<()

ExpressionAST operator< ( ExpressionAST const &  lhs,
ExpressionAST const &  rhs 
)

Definition at line 103 of file TrackerDetIdSelector.cc.

103  {
104  ExpressionAST ast = BinaryOP(::BinaryOP::OP::LESS, lhs, rhs);
105  return ast;
106 }

References BinaryOP::LESS.

◆ operator<=()

ExpressionAST operator<= ( ExpressionAST const &  lhs,
ExpressionAST const &  rhs 
)

Definition at line 98 of file TrackerDetIdSelector.cc.

98  {
100  return ast;
101 }

References BinaryOP::LESS_EQUAL.

◆ operator==()

ExpressionAST operator== ( ExpressionAST const &  lhs,
ExpressionAST const &  rhs 
)

Definition at line 93 of file TrackerDetIdSelector.cc.

93  {
95  return ast;
96 }

References BinaryOP::EQUAL.

◆ operator>()

ExpressionAST operator> ( ExpressionAST const &  lhs,
ExpressionAST const &  rhs 
)

Definition at line 83 of file TrackerDetIdSelector.cc.

83  {
85  return ast;
86 }

References BinaryOP::GREATER.

◆ operator>=()

ExpressionAST operator>= ( ExpressionAST const &  lhs,
ExpressionAST const &  rhs 
)

Definition at line 88 of file TrackerDetIdSelector.cc.

88  {
90  return ast;
91 }

References BinaryOP::GREATER_EQUAL.

◆ operator||()

ExpressionAST operator|| ( ExpressionAST const &  lhs,
ExpressionAST const &  rhs 
)

Definition at line 118 of file TrackerDetIdSelector.cc.

118  {
119  ExpressionAST ast = BinaryOP(BinaryOP::OP::OR, lhs, rhs);
120  return ast;
121 }

References BinaryOP::OR.

BinaryOP::OP::LESS
ExpressionAST
Definition: TrackerDetIdSelector.h:20
BinaryOP::OP::LESS_EQUAL
BinaryOP::OP::OR
BinaryOP::OP::AND
BinaryOP::OP::GREATER_EQUAL
BinaryOP::OP::GREATER
BinaryOP
Definition: TrackerDetIdSelector.h:50
BinaryOP::OP::NOT_EQUAL
BinaryOP::OP::EQUAL