/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DetectorDescription/Core/src/CutTubs.cc
43 строки
1 KB
Shahzad Malik Muzaffar
[DD] Move public headers in to interface directory
02 авг 2021, 19:31
02 авг 2021, 19:31
1de7feb
Код
Авторство
О чём код?
#include "DetectorDescription/Core/interface/CutTubs.h" #include "DataFormats/Math/interface/GeantUnits.h" #include <cmath> #include <vector> #include "DetectorDescription/Core/interface/DDSolidShapes.h" #include "DetectorDescription/Core/interface/Solid.h" using namespace geant_units; using namespace geant_units::operators; DDI::CutTubs::CutTubs(double zhalf, double rIn, double rOut, double startPhi, double deltaPhi, double lx, double ly, double lz, double tx, double ty, double tz) : Solid(DDSolidShape::ddcuttubs) { p_.emplace_back(zhalf); p_.emplace_back(rIn); p_.emplace_back(rOut); p_.emplace_back(startPhi); p_.emplace_back(deltaPhi); p_.emplace_back(lx); p_.emplace_back(ly); p_.emplace_back(lz); p_.emplace_back(tx); p_.emplace_back(ty); p_.emplace_back(tz); } void DDI::CutTubs::stream(std::ostream& os) const { os << " zhalf=" << convertMmToCm(p_[0]) << " rIn=" << convertMmToCm(p_[1]) << " rOut=" << convertMmToCm(p_[2]) << " startPhi=" << convertRadToDeg(p_[3]) << " deltaPhi=" << convertRadToDeg(p_[4]) << " Outside Normal at -z (" << p_[5] << "," << p_[6] << "," << p_[7] << ")" << " Outside Normal at +z (" << p_[8] << "," << p_[9] << "," << p_[10] << ")"; }