27 os <<
"DDConstant name=" << cons.
name();
30 os <<
" val=" << cons.
value();
33 os <<
" constant is not yet defined, only declared.";
45 <<
"DDConstants::createConstansFromEvaluator(): different size of variable names & values!";
47 for(
const auto& it :
vars ) {
48 auto found = it.find(
"___" );
def_type isDefined() const
const DDName & name() const
DDName is used to identify DDD entities uniquely.
const std::vector< std::string > & variables() const
access to the clhep-implementation of the dictionary variables
const std::vector< std::string > & values() const
double value() const
return the first stored value; does not check boundaries!
DDConstant()
an uninitialized constant; one can assign an initialized constant to make it valid ...
static void createConstantsFromEvaluator(ClhepEvaluator &)
creates all DDConstants from the variables of the ClhepEvaluator
double eval(const std::string &ns, const std::string &expr)
a named constant corresponding to the DDL-XML tag <Constant> and <ConstantsVector> ...
std::ostream & operator<<(std::ostream &os, const DDConstant &cons)
output operator for printing ...
void create(const DDName &name, std::unique_ptr< double > vals)