/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DetectorDescription/Parser/src/DDLAssembly.cc
20 строк
852 B
Ianna Osborne
implement assembly in dd core
16 июн 2021, 18:26
16 июн 2021, 18:26
ed325fa
Код
Авторство
О чём код?
#include "DetectorDescription/Parser/src/DDLAssembly.h" #include "DetectorDescription/Core/interface/DDSolid.h" #include "DetectorDescription/Parser/interface/DDLElementRegistry.h" #include "DetectorDescription/Parser/src/DDLSolid.h" #include "DetectorDescription/Parser/src/DDXMLElement.h" class DDCompactView; DDLAssembly::DDLAssembly(DDLElementRegistry* myreg) : DDLSolid(myreg) {} void DDLAssembly::preProcessElement(const std::string& name, const std::string& nmspace, DDCompactView& cpv) { myRegistry_->getElement("rSolid")->clear(); } // Upon ending a ShapelessSolid element, call DDCore giving the box name, and dimensions. void DDLAssembly::processElement(const std::string& name, const std::string& nmspace, DDCompactView& cpv) { DDSolid dds = DDSolidFactory::shapeless(getDDName(nmspace)); DDLSolid::setReference(nmspace, cpv); }