#include <DetectorDescription/Parser/src/DDLCone.h>
Public Member Functions | |
DDLCone () | |
Constructor. | |
void | processElement (const std::string &name, const std::string &nmspace) |
Processing the element. | |
~DDLCone () | |
Destructor. |
DDLCone.h - description ------------------- begin: Mon Oct 29 2001 email: case@ucdhep.ucdavis.edu
This processes DDL Cone and Cons elements.
Definition at line 24 of file DDLCone.h.
DDLCone::DDLCone | ( | ) |
DDLCone::~DDLCone | ( | ) |
void DDLCone::processElement | ( | const std::string & | name, | |
const std::string & | nmspace | |||
) | [virtual] |
Processing the element.
The processElement method completes any necessary work to process the XML element.
For example, this can be used to call the DDCore to make the geometry in memory. There is a default for this so that if not declared in the inheriting class, no processing is done.
Reimplemented from DDXMLElement.
Definition at line 43 of file DDLCone.cc.
References DDSolidFactory::cons(), DCOUT_V, ExprEvalInterface::eval(), DDXMLElement::getAttributeSet(), DDXMLElement::getDDName(), DDI::Singleton< I >::instance(), and DDLSolid::setReference().
00044 { 00045 DCOUT_V('P', "DDLCone::processElement started"); 00046 ExprEvalInterface & ev = ExprEvalSingleton::instance(); 00047 DDXMLAttribute atts = getAttributeSet(); 00048 00049 DDSolid ddcone = DDSolidFactory::cons(getDDName(nmspace) 00050 , ev.eval(nmspace, atts.find("dz")->second) 00051 , ev.eval(nmspace, atts.find("rMin1")->second) 00052 , ev.eval(nmspace, atts.find("rMax1")->second) 00053 , ev.eval(nmspace, atts.find("rMin2")->second) 00054 , ev.eval(nmspace, atts.find("rMax2")->second) 00055 , ev.eval(nmspace, atts.find("startPhi")->second) 00056 , ev.eval(nmspace, atts.find("deltaPhi")->second)); 00057 00058 DDLSolid::setReference(nmspace); 00059 00060 DCOUT_V('P', "DDLCone::processElement completed"); 00061 00062 }