/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DetectorDescription/Parser/src/DDLSphere.cc
28 строк
1 KB
Cms Build
Clang-Format
11 май 2019, 12:09
11 май 2019, 12:09
02cea70
Код
Авторство
О чём код?
#include "DetectorDescription/Parser/src/DDLSphere.h" #include "DetectorDescription/Core/interface/DDSolid.h" #include "DetectorDescription/Core/interface/ClhepEvaluator.h" #include "DetectorDescription/Parser/interface/DDLElementRegistry.h" #include "DetectorDescription/Parser/src/DDLSolid.h" #include "DetectorDescription/Parser/src/DDXMLElement.h" #include <map> #include <utility> class DDCompactView; DDLSphere::DDLSphere(DDLElementRegistry* myreg) : DDLSolid(myreg) {} // Upon encountering the end of the Sphere element, call DDCore. void DDLSphere::processElement(const std::string& name, const std::string& nmspace, DDCompactView& cpv) { ClhepEvaluator& ev = myRegistry_->evaluator(); DDXMLAttribute atts = getAttributeSet(); DDSolid ddsphere = DDSolidFactory::sphere(getDDName(nmspace), ev.eval(nmspace, atts.find("innerRadius")->second), ev.eval(nmspace, atts.find("outerRadius")->second), ev.eval(nmspace, atts.find("startPhi")->second), ev.eval(nmspace, atts.find("deltaPhi")->second), ev.eval(nmspace, atts.find("startTheta")->second), ev.eval(nmspace, atts.find("deltaTheta")->second)); DDLSolid::setReference(nmspace, cpv); }