CMS 3D CMS Logo

DDLSphere.cc
Go to the documentation of this file.
7 
8 #include <map>
9 #include <utility>
10 
11 class DDCompactView;
12 
14 
15 // Upon encountering the end of the Sphere element, call DDCore.
20  ev.eval(nmspace, atts.find("innerRadius")->second),
21  ev.eval(nmspace, atts.find("outerRadius")->second),
22  ev.eval(nmspace, atts.find("startPhi")->second),
23  ev.eval(nmspace, atts.find("deltaPhi")->second),
24  ev.eval(nmspace, atts.find("startTheta")->second),
25  ev.eval(nmspace, atts.find("deltaTheta")->second));
26 
27  DDLSolid::setReference(nmspace, cpv);
28 }
DDLElementRegistry * myRegistry_
Definition: DDXMLElement.h:173
virtual const DDXMLAttribute & getAttributeSet(size_t aIndex=0) const
Get a "row" of attributes, i.e. one attribute set.
Definition: DDXMLElement.cc:54
bool ev
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
std::map< std::string, std::string > DDXMLAttribute
Definition: DDXMLElement.h:45
A DDSolid represents the shape of a part.
Definition: DDSolid.h:39
ClhepEvaluator & evaluator()
DDLSphere(DDLElementRegistry *myreg)
Definition: DDLSphere.cc:13
static DDSolid sphere(const DDName &name, double innerRadius, double outerRadius, double startPhi, double deltaPhi, double startTheta, double deltaTheta)
Definition: DDSolid.cc:673
DDLSolid processes Box elements.
Definition: DDLSolid.h:30
void processElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Processing the element.
Definition: DDLSphere.cc:16
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)
Definition: DDXMLElement.cc:56
void setReference(const std::string &nmspace, DDCompactView &cpv)
Definition: DDLSolid.cc:13