#include <ScannerHelpers.h>
Public Member Functions | |
Parser () | |
Empty constructor, necessary for Root, useless. More... | |
Static Public Member Functions | |
static edm::TypeWithDict | elementType (const edm::TypeWithDict &wrapperType) |
Perform the type deduction form edm::Wrapper<C> to C::value_type and resolves typedefs. More... | |
static double | eval (const reco::parser::ExpressionPtr &sel, const edm::TypeWithDict type, const void *obj) |
Make a edm::ObjectWithDict(type, obj) and pass it to the expression. More... | |
static reco::parser::ExpressionPtr | makeExpression (const std::string &expr, const edm::TypeWithDict &type) |
Parse an expression for a given object type (using lazy parsing when resolving methods) More... | |
static reco::parser::SelectorPtr | makeSelector (const std::string &expr, const edm::TypeWithDict &type) |
Parse an expression for a given object type (using lazy parsing when resolving methods) More... | |
static bool | test (const reco::parser::SelectorPtr &sel, const edm::TypeWithDict type, const void *obj) |
Make a edm::ObjectWithDict(type, obj) and pass it to the selector. More... | |
Class helper::Parser has collection of useful static methods related to StringParser that can be exported to CINT via dictionaries. It's mosly meant to be used through the helper::ScannerBase class.
Definition at line 23 of file ScannerHelpers.h.
|
inline |
Empty constructor, necessary for Root, useless.
Definition at line 26 of file ScannerHelpers.h.
|
static |
Perform the type deduction form edm::Wrapper<C> to C::value_type and resolves typedefs.
Definition at line 42 of file ScannerHelpers.cc.
References DMR_cfg::cerr, universalConfigTemplate::collection, edm::TypeWithDict::name(), and edm::TypeWithDict::templateArgumentAt().
Referenced by fwlite::Scanner< Collection >::Scanner().
|
static |
Make a edm::ObjectWithDict(type, obj) and pass it to the expression.
Definition at line 60 of file ScannerHelpers.cc.
References getGTfromDQMFile::obj.
|
static |
Parse an expression for a given object type (using lazy parsing when resolving methods)
NOTA BENE: <0> for cuts, <1> for expresions (why? boh!)
Definition at line 8 of file ScannerHelpers.cc.
References reco::parser::baseExceptionWhat(), DMR_cfg::cerr, MillePedeFileConverter_cfg::e, parse(), and runTheMatrix::ret.
Referenced by helper::ScannerBase::addExpression().
|
static |
Parse an expression for a given object type (using lazy parsing when resolving methods)
NOTA BENE: <0> for cuts, <1> for expresions (why? boh!)
Definition at line 25 of file ScannerHelpers.cc.
References reco::parser::baseExceptionWhat(), DMR_cfg::cerr, MillePedeFileConverter_cfg::e, parse(), and runTheMatrix::ret.
Referenced by helper::ScannerBase::addExtraCut(), and helper::ScannerBase::setCut().
|
static |
Make a edm::ObjectWithDict(type, obj) and pass it to the selector.
Definition at line 53 of file ScannerHelpers.cc.
References getGTfromDQMFile::obj, and EgammaValidation_Wenu_cff::sel.
Referenced by edmIntegrityCheck.IntegrityCheck::report(), and edmIntegrityCheck.IntegrityCheck::structured().