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  L1AlgoReader
 
class  L1TechReader
 
class  OperatorAnd
 
class  OperatorNot
 
class  OperatorOr
 
class  OperatorXor
 
class  Parser
 
class  PathReader
 
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(), unpackBuffers-CaloStage2::token, 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:75
T const * product() const
Definition: Handle.h:81
std::shared_ptr< cms::Exception > whyFailed() const
Definition: HandleBase.h:110
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 GeneralSetup::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:56
T const * product() const
Definition: ESHandle.h:86
std::ostream& triggerExpression::operator<< ( std::ostream &  out,
const Evaluator &  eval 
)
inline

Definition at line 28 of file TriggerExpressionEvaluator.h.

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

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

Definition at line 80 of file TriggerExpressionParser.h.

References begin, end, or, mps_alisetup::parser, and mps_fire::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(), FWGUIManager::open3DRegion(), TriggerResultsFilter::parse(), TriggerResultsFilterFromDB::parse(), DDLVector::parse_numbers(), DDLVector::parse_strings(), DDLMap::processElement(), loadConditions::readTagAndSince(), FWModelExpressionSelector::select(), FWExpressionEvaluator::setExpression(), and FWModelFilter::setExpression().

80  {
81  typedef typename T::const_iterator Iterator;
82  Parser<Iterator> parser;
83  Evaluator * evaluator = 0;
84 
85  Iterator begin = text.begin();
86  Iterator end = text.end();
87 
88  // the interface of qi::phrase_parse has changed between Boost 1.40 (Spirit 2.0) and Boost 1.41 (Spirit 2.1)
89  bool result = qi::phrase_parse( begin, end, parser, ascii::space, evaluator );
90 
91  if (not result or begin != end) {
92  delete evaluator;
93  return 0;
94  }
95 
96  return evaluator;
97 }
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: mps_fire.py:83
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 100 of file TriggerExpressionParser.h.

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

100  {
101  Parser<const char *> parser;
102  Evaluator * evaluator = 0;
103 
104  const char * begin = text;
105  const char * end = text + strlen(text);
106 
107  // the interface of qi::phrase_parse has changed between Boost 1.40 (Spirit 2.0) and Boost 1.41 (Spirit 2.1)
108  bool result = qi::phrase_parse( begin, end, parser, ascii::space, evaluator );
109 
110  if (not result or begin != end) {
111  delete evaluator;
112  return 0;
113  }
114 
115  return evaluator;
116 }
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: mps_fire.py:83
tuple text
Definition: runonSM.py:42
#define end
Definition: vmac.h:37
#define begin
Definition: vmac.h:30