/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DetectorDescription/Core/src/Division.cc
30 строк
1 KB
Cms Build
Clang-Format
29 май 2019, 08:28
29 май 2019, 08:28
96591f2
Код
Авторство
О чём код?
#include "DetectorDescription/Core/src/Division.h" #include <string> #include "DetectorDescription/Core/interface/DDSolid.h" using DDI::Division; Division::Division(const DDLogicalPart& parent, const DDAxes axis, int nReplicas, double width, double offset) : parent_(parent), axis_(axis), nReplicas_(nReplicas), width_(width), offset_(offset) {} Division::Division(const DDLogicalPart& parent, const DDAxes axis, int nReplicas, double offset) : parent_(parent), axis_(axis), nReplicas_(nReplicas), width_(0.0), offset_(offset) {} Division::Division(const DDLogicalPart& parent, const DDAxes axis, double width, double offset) : parent_(parent), axis_(axis), nReplicas_(0), width_(width), offset_(offset) {} DDAxes Division::axis() const { return axis_; } int Division::nReplicas() const { return nReplicas_; } double Division::width() const { return width_; } double Division::offset() const { return offset_; } const DDLogicalPart& Division::parent() const { return parent_; } void Division::stream(std::ostream& os) { os << std::endl; os << " LogicalPart: " << parent_ << std::endl; os << " Solid: " << parent_.solid() << std::endl; os << " axis: " << DDAxesNames::name(axis()) << " nReplicas: " << nReplicas() << " width: " << width() << " offset: " << offset() << std::endl; }