38 for (; i < myNumeric->size(); ++
i) {
39 atts = myNumeric->getAttributeSet(i);
44 for (i = 0; i < myString->size(); ++
i) {
45 atts = myString->getAttributeSet(i);
46 sArgs[atts.find(
"name")->second] = atts.find(
"value")->second;
54 static_cast<DDLVector*>(myVector.get())->getMapOfVectors(),
55 static_cast<DDLMap*
>(myMap.get())->getMapOfMaps(),
57 static_cast<DDLVector*
>(myVector.get())->getMapOfStrVectors());
void initialize(const DDName &algoName, const DDLogicalPart &parent, const DDNumericArguments &nArgs, const DDVectorArguments &vArgs, const DDMapArguments &mArgs, const DDStringArguments &sArgs, const DDStringVectorArguments &svArgs)
initializes the wrapped algorithm algo_ and does some pre- and post-processing
void execute(DDCompactView &)
executes the wrapped algorithm algo_; some pre- and post-processing (exception handling) ...
wrapper around a DDAlgorithm
DDLElementRegistry * myRegistry_
DDLVector handles Rotation and ReflectionRotation elements.
virtual const DDXMLAttribute & getAttributeSet(size_t aIndex=0) const
Get a "row" of attributes, i.e. one attribute set.
DDName is used to identify DDD entities uniquely.
Compact representation of the geometrical detector hierarchy.
std::map< std::string, std::string > DDXMLAttribute
void processElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Processing the element.
ClhepEvaluator & evaluator()
std::shared_ptr< DDXMLElement > getElement(const std::string &name)
THE most important part. Getting the pointer to a given element type.
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
void preProcessElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Called by loadAttributes AFTER attributes are loaded.
DDLMap handles Map container.
This is a base class for processing XML elements in the DDD.
DDLAlgorithm(DDLElementRegistry *myreg)
double eval(const std::string &ns, const std::string &expr)
The main class for processing parsed elements.
virtual void clear(void)
clear this element's contents.
virtual const DDName getDDName(const std::string &defaultNS, const std::string &attname=std::string("name"), size_t aIndex=0)