CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DetectorDescription/Parser/src/DDLShapelessSolid.cc

Go to the documentation of this file.
00001 /***************************************************************************
00002                           DDLShapelessSolid.cc  -  description
00003                              -------------------
00004     begin                : Wed May 15 2002
00005     email                : case@ucdhep.ucdavis.edu
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *           DDDParser sub-component of DDD                                *
00011  *                                                                         *
00012  ***************************************************************************/
00013 
00014 #include "DetectorDescription/Parser/src/DDLShapelessSolid.h"
00015 
00016 #include "DetectorDescription/Core/interface/DDName.h"
00017 #include "DetectorDescription/Core/interface/DDSolid.h"
00018 #include "DetectorDescription/Base/interface/DDdebug.h"
00019 
00020 DDLShapelessSolid::DDLShapelessSolid( DDLElementRegistry* myreg )
00021   : DDLSolid( myreg )
00022 {}
00023 
00024 DDLShapelessSolid::~DDLShapelessSolid( void )
00025 {}
00026 
00027 void
00028 DDLShapelessSolid::preProcessElement( const std::string& name, const std::string& nmspace, DDCompactView& cpv )
00029 {
00030   myRegistry_->getElement("rSolid")->clear();
00031 }
00032 
00033 // Upon ending a ShapelessSolid element, call DDCore giving the box name, and dimensions.
00034 void
00035 DDLShapelessSolid::processElement( const std::string& name, const std::string& nmspace, DDCompactView& cpv )
00036 {
00037   DCOUT_V('P', "DDLShapelessSolid::processElement started");
00038 
00039   DDSolid dds = DDSolidFactory::shapeless(getDDName(nmspace));
00040     
00041   DDLSolid::setReference(nmspace, cpv);
00042 
00043   DCOUT_V('P', "DDLShapelessSolid::processElement completed");
00044 }