CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
triggerExpression Namespace Reference

Classes

class  BinaryOperator
 
class  Constant
 
class  Data
 
class  Evaluator
 
class  HLTReader
 
class  L1Reader
 
class  L1TechReader
 
class  OperatorAnd
 
class  OperatorNot
 
class  OperatorOr
 
class  OperatorXor
 
class  Parser
 
class  Prescaler
 
class  UnaryOperator
 

Functions

template<typename T >
static const Tget (const edm::Event &event, const edm::EDGetTokenT< T > &token)
 
template<typename R , typename T >
static const Tget (const edm::EventSetup &setup)
 
std::ostream & operator<< (std::ostream &out, const Evaluator &eval)
 
template<class T >
Evaluatorparse (const T &text)
 
Evaluatorparse (const char *text)
 

Function Documentation

template<typename T >
static const T* triggerExpression::get ( const edm::Event event,
const edm::EDGetTokenT< T > &  token 
)
static

Definition at line 23 of file TriggerExpressionData.cc.

References relativeConstraints::error, patZpeak::handle, edm::HandleBase::isValid(), edm::Handle< T >::product(), and edm::HandleBase::whyFailed().

23  {
25  event.getByToken(token, handle);
26  if (not handle.isValid()) {
27  auto const & error = handle.whyFailed();
28  edm::LogWarning(error->category()) << error->what();
29  return 0;
30  } else {
31  return handle.product();
32  }
33 }
tuple handle
Definition: patZpeak.py:22
bool isValid() const
Definition: HandleBase.h:76
T const * product() const
Definition: Handle.h:81
std::shared_ptr< cms::Exception > whyFailed() const
Definition: HandleBase.h:111
template<typename R , typename T >
static const T* triggerExpression::get ( const edm::EventSetup setup)
static

Definition at line 37 of file TriggerExpressionData.cc.

References patZpeak::handle, edm::ESHandle< class >::product(), dttmaxenums::R, and HcalObjRepresent::setup().

37  {
39  setup.get<R>().get(handle);
40  return handle.product();
41 }
tuple handle
Definition: patZpeak.py:22
const T & get() const
Definition: EventSetup.h:55
T const * product() const
Definition: ESHandle.h:62
std::ostream& triggerExpression::operator<< ( std::ostream &  out,
const Evaluator &  eval 
)
inline

Definition at line 28 of file TriggerExpressionEvaluator.h.

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

28  {
29  eval.dump(out);
30  return out;
31 }
tuple out
Definition: dbtoconf.py:99
template<class T >
Evaluator* triggerExpression::parse ( const T text)

Definition at line 93 of file TriggerExpressionParser.h.

References begin, end, or, geometryXMLtoCSV::parser, and query::result.

Referenced by FWItemValueGetter::addEntry(), reco::parser::cutParser(), DDTokenize2(), cand::parser::decayParser(), reco::parser::expressionParser(), HcalChannelDataXml::init_data(), DBSApi_cff::loadXML(), BeamSpotWorkflow::main(), helper::Parser::makeExpression(), helper::Parser::makeSelector(), createPayload::mkWorkflowdir(), TriggerResultsFilter::parse(), TriggerResultsFilterFromDB::parse(), DDLVector::parse_numbers(), DDLVector::parse_strings(), run_regression::ParseXML(), DDLMap::processElement(), loadConditions::readTagAndSince(), FWModelExpressionSelector::select(), FWModelFilter::setExpression(), and FWExpressionEvaluator::setExpression().

93  {
94  typedef typename T::const_iterator Iterator;
95  Parser<Iterator> parser;
96  Evaluator * evaluator = 0;
97 
98  Iterator begin = text.begin();
99  Iterator end = text.end();
100 
101  // the interface of qi::phrase_parse has changed between Boost 1.40 (Spirit 2.0) and Boost 1.41 (Spirit 2.1)
102  bool result = qi::phrase_parse( begin, end, parser, ascii::space, evaluator );
103 
104  if (not result or begin != end) {
105  delete evaluator;
106  return 0;
107  }
108 
109  return evaluator;
110 }
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::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
tuple result
Definition: query.py:137
tuple text
Definition: runonSM.py:42
#define end
Definition: vmac.h:37
#define begin
Definition: vmac.h:30
Evaluator* triggerExpression::parse ( const char *  text)
inline

Definition at line 113 of file TriggerExpressionParser.h.

References begin, end, or, geometryXMLtoCSV::parser, query::result, and runonSM::text.

113  {
114  Parser<const char *> parser;
115  Evaluator * evaluator = 0;
116 
117  const char * begin = text;
118  const char * end = text + strlen(text);
119 
120  // the interface of qi::phrase_parse has changed between Boost 1.40 (Spirit 2.0) and Boost 1.41 (Spirit 2.1)
121  bool result = qi::phrase_parse( begin, end, parser, ascii::space, evaluator );
122 
123  if (not result or begin != end) {
124  delete evaluator;
125  return 0;
126  }
127 
128  return evaluator;
129 }
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::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
tuple result
Definition: query.py:137
tuple text
Definition: runonSM.py:42
#define end
Definition: vmac.h:37
#define begin
Definition: vmac.h:30