CMS 3D CMS Logo

Classes | Functions
triggerExpression Namespace Reference

Classes

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

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 27 of file TriggerExpressionEvaluator.h.

27  {
28  eval.dump(out);
29  return out;
30  }

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

◆ parse() [1/2]

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

Definition at line 85 of file TriggerExpressionParser.h.

85  {
86  Parser<const char *> parser;
87  Evaluator *evaluator = nullptr;
88 
89  const char *begin = text;
90  const char *end = text + strlen(text);
91 
92  // the interface of qi::phrase_parse has changed between Boost 1.40 (Spirit 2.0) and Boost 1.41 (Spirit 2.1)
93  bool result = qi::phrase_parse(begin, end, parser, ascii::space, evaluator);
94 
95  if (not result or begin != end) {
96  delete evaluator;
97  return nullptr;
98  }
99 
100  return evaluator;
101  }

References begin, end, or, writedatasetfile::parser, mps_fire::result, and runonSM::text.

◆ parse() [2/2]

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

Definition at line 65 of file TriggerExpressionParser.h.

65  {
66  typedef typename T::const_iterator Iterator;
67  Parser<Iterator> parser;
68  Evaluator *evaluator = nullptr;
69 
70  Iterator begin = text.begin();
71  Iterator end = text.end();
72 
73  // the interface of qi::phrase_parse has changed between Boost 1.40 (Spirit 2.0) and Boost 1.41 (Spirit 2.1)
74  bool result = qi::phrase_parse(begin, end, parser, ascii::space, evaluator);
75 
76  if (not result or begin != end) {
77  delete evaluator;
78  return nullptr;
79  }
80 
81  return evaluator;
82  }

References begin, end, or, writedatasetfile::parser, mps_fire::result, and runonSM::text.

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

writedatasetfile.parser
parser
Definition: writedatasetfile.py:7
Iterator
Definition: DQMStoreStats.h:94
end
#define end
Definition: vmac.h:39
cms::Iterator
TGeoIterator Iterator
Definition: DDFilteredView.h:49
or
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
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
mps_fire.result
result
Definition: mps_fire.py:303
runonSM.text
text
Definition: runonSM.py:43
begin
#define begin
Definition: vmac.h:32