Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-06-18 23:26:50

0001 #include "DetectorDescription/Parser/src/DDLAssembly.h"
0002 #include "DetectorDescription/Core/interface/DDSolid.h"
0003 #include "DetectorDescription/Parser/interface/DDLElementRegistry.h"
0004 #include "DetectorDescription/Parser/src/DDLSolid.h"
0005 #include "DetectorDescription/Parser/src/DDXMLElement.h"
0006 
0007 class DDCompactView;
0008 
0009 DDLAssembly::DDLAssembly(DDLElementRegistry* myreg) : DDLSolid(myreg) {}
0010 
0011 void DDLAssembly::preProcessElement(const std::string& name, const std::string& nmspace, DDCompactView& cpv) {
0012   myRegistry_->getElement("rSolid")->clear();
0013 }
0014 
0015 // Upon ending a ShapelessSolid element, call DDCore giving the box name, and dimensions.
0016 void DDLAssembly::processElement(const std::string& name, const std::string& nmspace, DDCompactView& cpv) {
0017   DDSolid dds = DDSolidFactory::shapeless(getDDName(nmspace));
0018 
0019   DDLSolid::setReference(nmspace, cpv);
0020 }