#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 alignCSCRings::e, and evaluator_.
ClhepEvaluator::~ClhepEvaluator | ( | ) |
|
private |
Definition at line 235 of file ClhepEvaluator.cc.
References alignCSCRings::e, Exception, 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_, mps_fire::i, prepare(), mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, and throwex().
Referenced by DDConstant::createConstantsFromEvaluator(), DDLVector::do_makeDouble(), DDLMap::do_makeDouble(), DDLRotationAndReflection::isLeftHanded(), DDLRotationAndReflection::makeX(), DDLRotationAndReflection::makeY(), DDLRotationAndReflection::makeZ(), DDLPgonGenerator::processElement(), DDLTubs::processElement(), DDLPseudoTrap::processElement(), DDLTrapezoid::processElement(), DDLTorus::processElement(), DDLEllipticalTube::processElement(), DDLSphere::processElement(), DDLAlgorithm::processElement(), DDLSpecPar::processElement(), DDLBox::processElement(), DDLCone::processElement(), DDLPolyGenerator::processElement(), DDLElementaryMaterial::processElement(), DDLRotationAndReflection::processElement(), DDLBooleanSolid::processElement(), DDLPosPart::processElement(), DDLDivision::processElement(), DDLVector::processElement(), DDLNumeric::processElement(), DDLCompositeMaterial::processElement(), DDLMap::processElement(), DDLRotationByAxis::processOne(), 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_, prepare(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 139 of file ClhepEvaluator.cc.
References mergeVDriftHistosByStation::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_, prepare(), AlCaHLTBitMon_QueryRunRegistry::string, throwex(), values_, and variables_.
Referenced by regressionTest_setup(), and DDLSAX2ExpressionHandler::startElement().
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_, throwex(), values_, and variables_.
|
private |
Definition at line 227 of file ClhepEvaluator.cc.
References Exception, 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().