#include <ClhepEvaluator.h>
Public Member Functions | |
void | clear () |
ClhepEvaluator () | |
double | eval (const std::string &ns, const std::string &expr) |
double | eval (const char *expression) |
evaluations using directly the CLHEP-evaluator More... | |
bool | isDefined (const std::string &ns, const std::string &name) |
void | set (const std::string &ns, const std::string &name, const std::string &exprValue) |
void | set (const std::string &name, const std::string &value) |
filling the clhep-implementation of the dictionary More... | |
const std::vector< std::string > & | values () const |
const std::vector< std::string > & | variables () const |
access to the clhep-implementation of the dictionary variables More... | |
~ClhepEvaluator () | |
Private Member Functions | |
void | checkname (const std::string &name) const |
void | prepare (const std::string &ns, const std::string &name, const std::string &exprValue, std::string &nameResult, std::string &valResult) const |
void | throwex (const std::string &ns, const std::string &name, const std::string &expr, const std::string &reason, int idx=0) const |
Private Attributes | |
HepTool::Evaluator | evaluator_ |
std::vector< std::string > | values_ |
std::vector< std::string > | variables_ |
Definition at line 8 of file ClhepEvaluator.h.
ClhepEvaluator::ClhepEvaluator | ( | ) |
Definition at line 11 of file ClhepEvaluator.cc.
References MillePedeFileConverter_cfg::e, and evaluator_.
ClhepEvaluator::~ClhepEvaluator | ( | ) |
|
private |
Definition at line 235 of file ClhepEvaluator.cc.
References MillePedeFileConverter_cfg::e, Exception, alignCSCRings::s, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by set().
void ClhepEvaluator::clear | ( | void | ) |
Definition at line 130 of file ClhepEvaluator.cc.
References evaluator_, values_, and variables_.
Referenced by BeautifulSoup.Tag::setString(), and ~ClhepEvaluator().
double ClhepEvaluator::eval | ( | const std::string & | ns, |
const std::string & | expr | ||
) |
Definition at line 85 of file ClhepEvaluator.cc.
References gather_cfg::cout, evaluator_, jetsAK8_cff::expr, mps_fire::i, prepare(), mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, and throwex().
Referenced by DDConstant::createConstantsFromEvaluator(), DDLVector::do_makeDouble(), DDLMap::do_makeDouble(), DDLAlgorithm::processElement(), DDLSpecPar::processElement(), DDLNumeric::processElement(), DDLVector::processElement(), DDLMap::processElement(), regressionTest_first(), and regressionTest_setup().
double ClhepEvaluator::eval | ( | const char * | expression | ) |
evaluations using directly the CLHEP-evaluator
expression must be an expression compatible with the CLHEP-Evaluator syntax
Definition at line 107 of file ClhepEvaluator.cc.
References gather_cfg::cout, evaluator_, mps_fire::i, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, and throwex().
bool ClhepEvaluator::isDefined | ( | const std::string & | ns, |
const std::string & | name | ||
) |
Definition at line 121 of file ClhepEvaluator.cc.
References evaluator_, Skims_PA_cff::name, prepare(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 139 of file ClhepEvaluator.cc.
References heavyIonCSV_trainingSettings::idx, Skims_PA_cff::name, AlCaHLTBitMon_QueryRunRegistry::string, groupFilesInBlocks::temp, and throwex().
Referenced by eval(), isDefined(), and set().
void ClhepEvaluator::set | ( | const std::string & | ns, |
const std::string & | name, | ||
const std::string & | exprValue | ||
) |
Definition at line 42 of file ClhepEvaluator.cc.
References checkname(), gather_cfg::cout, dd_exchange_value(), evaluator_, Skims_PA_cff::name, prepare(), AlCaHLTBitMon_QueryRunRegistry::string, throwex(), values_, and variables_.
Referenced by regressionTest_setup().
void ClhepEvaluator::set | ( | const std::string & | name, |
const std::string & | value | ||
) |
filling the clhep-implementation of the dictionary
Definition at line 66 of file ClhepEvaluator.cc.
References gather_cfg::cout, dd_exchange_value(), evaluator_, dqmiodumpmetadata::n, throwex(), findQualityFiles::v, values_, and variables_.
|
private |
Definition at line 227 of file ClhepEvaluator.cc.
References Exception, jetsAK8_cff::expr, heavyIonCSV_trainingSettings::idx, Skims_PA_cff::name, PixelMapPlotter::reason, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by eval(), prepare(), and set().
|
inline |
Definition at line 24 of file ClhepEvaluator.h.
References values_.
Referenced by DDConstant::createConstantsFromEvaluator().
|
inline |
access to the clhep-implementation of the dictionary variables
Definition at line 23 of file ClhepEvaluator.h.
References variables_.
Referenced by DDConstant::createConstantsFromEvaluator().
|
private |
Definition at line 50 of file ClhepEvaluator.h.
Referenced by clear(), ClhepEvaluator(), eval(), isDefined(), and set().
|
private |
Definition at line 52 of file ClhepEvaluator.h.
|
private |
Definition at line 51 of file ClhepEvaluator.h.
Referenced by clear(), set(), and variables().