test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DDLCone.cc
Go to the documentation of this file.
7 
8 class DDCompactView;
9 
11  : DDLSolid( myreg )
12 {}
13 
14 void
16 {
19 
20  DDSolid ddcone = DDSolidFactory::cons( getDDName( nmspace ),
21  ev.eval( nmspace, atts.find( "dz" )->second ),
22  ev.eval( nmspace, atts.find( "rMin1" )->second ),
23  ev.eval( nmspace, atts.find( "rMax1" )->second ),
24  ev.eval( nmspace, atts.find( "rMin2" )->second ),
25  ev.eval( nmspace, atts.find( "rMax2" )->second ),
26  ev.eval( nmspace, atts.find( "startPhi" )->second ),
27  ev.eval( nmspace, atts.find( "deltaPhi" )->second ));
28 
29  DDLSolid::setReference( nmspace, cpv );
30 }
virtual void processElement(const std::string &name, const std::string &nmspace, DDCompactView &cpv) override
Processing the element.
Definition: DDLCone.cc:15
DDLElementRegistry * myRegistry_
Definition: DDXMLElement.h:172
static DDSolid cons(const DDName &name, double zhalf, double rInMinusZ, double rOutMinusZ, double rInPlusZ, double rOutPlusZ, double phiFrom, double deltaPhi)
Definition: DDSolid.cc:798
virtual const DDXMLAttribute & getAttributeSet(size_t aIndex=0) const
Get a "row" of attributes, i.e. one attribute set.
Definition: DDXMLElement.cc:73
bool ev
type of data representation of DDCompactView
Definition: DDCompactView.h:90
std::map< std::string, std::string > DDXMLAttribute
Definition: DDXMLElement.h:45
A DDSolid represents the shape of a part.
Definition: DDSolid.h:37
ClhepEvaluator & evaluator()
DDLCone(DDLElementRegistry *myreg)
Definition: DDLCone.cc:10
DDLSolid processes Box elements.
Definition: DDLSolid.h:30
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:80
void setReference(const std::string &nmspace, DDCompactView &cpv)
Definition: DDLSolid.cc:17