CMS 3D CMS Logo

Classes | Functions
triggerExpression Namespace Reference

Classes

class  BinaryOperator
 
class  Constant
 
class  Data
 
class  Evaluator
 
class  L1uGTReader
 
class  OperatorAnd
 
class  OperatorMasking
 
class  OperatorNot
 
class  OperatorOr
 
class  OperatorXor
 
class  Parser
 
class  PathReader
 
class  Prescaler
 
class  UnaryOperator
 

Functions

std::ostream & operator<< (std::ostream &out, const Evaluator &eval)
 
template<class T >
Evaluatorparse (const T &text)
 
Evaluatorparse (const char *text)
 

Function Documentation

◆ operator<<()

std::ostream& triggerExpression::operator<< ( std::ostream &  out,
const Evaluator eval 
)
inline

Definition at line 47 of file TriggerExpressionEvaluator.h.

References triggerExpression::Evaluator::dump(), and MillePedeFileConverter_cfg::out.

47  {
48  eval.dump(out);
49  return out;
50  }

◆ parse() [1/2]

template<class T >
Evaluator* triggerExpression::parse ( const T text)

Definition at line 106 of file TriggerExpressionParser.h.

References dd4hep::evaluator(), or, writedatasetfile::parser, mps_fire::result, and submitPVValidationJobs::text.

Referenced by TriggerResultsFilterFromDB::parse(), and TriggerResultsFilter::parse().

106  {
107  typedef typename T::const_iterator Iterator;
108  Parser<Iterator> parser;
109  Evaluator *evaluator = nullptr;
110 
111  Iterator begin = text.begin();
112  Iterator end = text.end();
113 
114  // the interface of qi::phrase_parse has changed between Boost 1.40 (Spirit 2.0) and Boost 1.41 (Spirit 2.1)
115  bool result = qi::phrase_parse(begin, end, parser, ascii::space, evaluator);
116 
117  if (not result or begin != end) {
118  delete evaluator;
119  return nullptr;
120  }
121 
122  return evaluator;
123  }
TGeoIterator Iterator
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
dd4hep::tools::Evaluator & evaluator()

◆ parse() [2/2]

Evaluator* triggerExpression::parse ( const char *  text)
inline

Definition at line 126 of file TriggerExpressionParser.h.

References dd4hep::evaluator(), or, writedatasetfile::parser, mps_fire::result, and submitPVValidationJobs::text.

126  {
127  Parser<const char *> parser;
128  Evaluator *evaluator = nullptr;
129 
130  const char *begin = text;
131  const char *end = text + strlen(text);
132 
133  // the interface of qi::phrase_parse has changed between Boost 1.40 (Spirit 2.0) and Boost 1.41 (Spirit 2.1)
134  bool result = qi::phrase_parse(begin, end, parser, ascii::space, evaluator);
135 
136  if (not result or begin != end) {
137  delete evaluator;
138  return nullptr;
139  }
140 
141  return evaluator;
142  }
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
dd4hep::tools::Evaluator & evaluator()