#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 10 of file ClhepEvaluator.h.
ClhepEvaluator::ClhepEvaluator | ( | ) |
Definition at line 11 of file ClhepEvaluator.cc.
References MillePedeFileConverter_cfg::e, and evaluator_.
ClhepEvaluator::~ClhepEvaluator | ( | ) |
Definition at line 27 of file ClhepEvaluator.cc.
References clear().
|
private |
Definition at line 271 of file ClhepEvaluator.cc.
References MillePedeFileConverter_cfg::e, Exception, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by set(), and values().
void ClhepEvaluator::clear | ( | void | ) |
Definition at line 142 of file ClhepEvaluator.cc.
References evaluator_, values_, and variables_.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), Vispa.Views.PropertyView.PropertyView::updateContent(), values(), and ~ClhepEvaluator().
double ClhepEvaluator::eval | ( | const std::string & | ns, |
const std::string & | expr | ||
) |
Definition at line 94 of file ClhepEvaluator.cc.
References gather_cfg::cout, evaluator_, mps_fire::i, prepare(), mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, and throwex().
Referenced by DDLVector::do_makeDouble(), DDLMap::do_makeDouble(), DDLRotationAndReflection::isLeftHanded(), DDLRotationAndReflection::makeX(), DDLRotationAndReflection::makeY(), DDLRotationAndReflection::makeZ(), DDLPgonGenerator::processElement(), DDLTubs::processElement(), DDLPseudoTrap::processElement(), DDLOrb::processElement(), DDLTorus::processElement(), DDLTrapezoid::processElement(), DDLParallelepiped::processElement(), DDLEllipsoid::processElement(), DDLEllipticalTube::processElement(), DDLSphere::processElement(), DDLAlgorithm::processElement(), DDLSpecPar::processElement(), DDLBox::processElement(), DDLCone::processElement(), DDLElementaryMaterial::processElement(), DDLPolyGenerator::processElement(), DDLDivision::processElement(), DDLRotationAndReflection::processElement(), DDLPosPart::processElement(), DDLBooleanSolid::processElement(), DDLNumeric::processElement(), DDLCompositeMaterial::processElement(), DDLVector::processElement(), DDLMap::processElement(), DDLRotationByAxis::processOne(), regressionTest_first(), regressionTest_setup(), and values().
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 117 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 131 of file ClhepEvaluator.cc.
References evaluator_, prepare(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 153 of file ClhepEvaluator.cc.
References training_settings::idx, dataset::name, AlCaHLTBitMon_QueryRunRegistry::string, groupFilesInBlocks::temp, and throwex().
Referenced by eval(), isDefined(), set(), and values().
void ClhepEvaluator::set | ( | const std::string & | ns, |
const std::string & | name, | ||
const std::string & | exprValue | ||
) |
Definition at line 48 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 DDStreamer::vars_read().
void ClhepEvaluator::set | ( | const std::string & | name, |
const std::string & | value | ||
) |
filling the clhep-implementation of the dictionary
Definition at line 73 of file ClhepEvaluator.cc.
References gather_cfg::cout, dd_exchange_value(), evaluator_, throwex(), values_, and variables_.
|
private |
Definition at line 257 of file ClhepEvaluator.cc.
References Exception, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by eval(), prepare(), set(), and values().
|
inline |
Definition at line 27 of file ClhepEvaluator.h.
References checkname(), clear(), eval(), training_settings::idx, dataset::name, prepare(), AlCaHLTBitMon_QueryRunRegistry::string, throwex(), relativeConstraints::value, and values_.
Referenced by DDStreamer::vars_write().
|
inline |
access to the clhep-implementation of the dictionary variables
Definition at line 26 of file ClhepEvaluator.h.
References variables_.
Referenced by DDStreamer::vars_write().
|
private |
Definition at line 53 of file ClhepEvaluator.h.
Referenced by clear(), ClhepEvaluator(), eval(), isDefined(), and set().
|
private |
Definition at line 55 of file ClhepEvaluator.h.
|
private |
Definition at line 54 of file ClhepEvaluator.h.
Referenced by clear(), set(), and variables().