20 double zbot(0.), ztop(0.);
21 if( atts.find(
"zBottomCut" ) != atts.end() )
23 zbot = ev.
eval( nmspace, atts.find(
"zBottomCut" )->second );
25 if( atts.find(
"zTopCut" ) != atts.end() )
27 ztop = ev.
eval( nmspace, atts.find(
"zTopCut" )->second );
30 ev.
eval(nmspace, atts.find(
"xSemiAxis")->second),
31 ev.
eval(nmspace, atts.find(
"ySemiAxis")->second),
32 ev.
eval(nmspace, atts.find(
"zSemiAxis")->second),
DDLElementRegistry * myRegistry_
virtual const DDXMLAttribute & getAttributeSet(size_t aIndex=0) const
Get a "row" of attributes, i.e. one attribute set.
DDLEllipsoid(DDLElementRegistry *myreg)
type of data representation of DDCompactView
std::map< std::string, std::string > DDXMLAttribute
A DDSolid represents the shape of a part.
void processElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Processing the element.
ClhepEvaluator & evaluator()
static DDSolid ellipsoid(const DDName &name, double xSemiAxis, double ySemiAxis, double zSemiAxis, double zBottomCut=0., double zTopCut=0.)
DDLSolid processes Box elements.
double eval(const std::string &ns, const std::string &expr)
The main class for processing parsed elements.
virtual const DDName getDDName(const std::string &defaultNS, const std::string &attname=std::string("name"), size_t aIndex=0)
void setReference(const std::string &nmspace, DDCompactView &cpv)