CMS 3D CMS Logo

DDLCone Class Reference

DDLCone processes all Cone elements. More...

#include <DetectorDescription/Parser/src/DDLCone.h>

Inheritance diagram for DDLCone:

DDLSolid DDXMLElement

List of all members.

Public Member Functions

 DDLCone ()
 Constructor.
void processElement (const std::string &name, const std::string &nmspace)
 Processing the element.
 ~DDLCone ()
 Destructor.


Detailed Description

DDLCone processes all Cone elements.

Author:
Michael Case
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.


Constructor & Destructor Documentation

DDLCone::DDLCone (  ) 

Constructor.

Definition at line 33 of file DDLCone.cc.

00034 {
00035 }

DDLCone::~DDLCone (  ) 

Destructor.

Definition at line 38 of file DDLCone.cc.

00039 {
00040 }


Member Function Documentation

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 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:18:00 2009 for CMSSW by  doxygen 1.5.4