CMS 3D CMS Logo

Public Member Functions

DDLCone Class Reference

DDLCone processes all Cone elements. More...

#include <DDLCone.h>

Inheritance diagram for DDLCone:
DDLSolid DDXMLElement

List of all members.

Public Member Functions

 DDLCone (DDLElementRegistry *myreg)
 Constructor.
virtual void processElement (const std::string &name, const std::string &nmspace, DDCompactView &cpv)
 Processing the element.
virtual ~DDLCone (void)
 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 ( DDLElementRegistry myreg)

Constructor.

Definition at line 22 of file DDLCone.cc.

  : DDLSolid( myreg )
{}
DDLCone::~DDLCone ( void  ) [virtual]

Destructor.

Definition at line 26 of file DDLCone.cc.

{}

Member Function Documentation

void DDLCone::processElement ( const std::string &  name,
const std::string &  nmspace,
DDCompactView cpv 
) [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 31 of file DDLCone.cc.

References DDSolidFactory::cons(), DCOUT_V, ExprEvalInterface::eval(), DDXMLElement::getAttributeSet(), DDXMLElement::getDDName(), instance, and DDLSolid::setReference().

{  
  DCOUT_V( 'P', "DDLCone::processElement started" );
  ExprEvalInterface & ev = ExprEvalSingleton::instance();
  DDXMLAttribute atts = getAttributeSet();

  DDSolid ddcone = DDSolidFactory::cons( getDDName( nmspace ),
                                         ev.eval( nmspace, atts.find( "dz" )->second ),
                                         ev.eval( nmspace, atts.find( "rMin1" )->second ),
                                         ev.eval( nmspace, atts.find( "rMax1" )->second ),
                                         ev.eval( nmspace, atts.find( "rMin2" )->second ),
                                         ev.eval( nmspace, atts.find( "rMax2" )->second ),
                                         ev.eval( nmspace, atts.find( "startPhi" )->second ),
                                         ev.eval( nmspace, atts.find( "deltaPhi" )->second ));

  DDLSolid::setReference( nmspace, cpv );

  DCOUT_V( 'P', "DDLCone::processElement completed" );
}