/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DetectorDescription/Core/interface/DDRoot.h
32 строки
884 B
Cms Build
Clang-Format
29 май 2019, 08:28
29 май 2019, 08:28
96591f2
Код
Авторство
О чём код?
#ifndef DDRoot_h #define DDRoot_h #include "DetectorDescription/Core/interface/DDLogicalPart.h" #include "DetectorDescription/Core/interface/Singleton.h" //! Defines the root of the CompactView /** DDRoot will define the root of the geometrical hierarchy. The root also defines the base of the global coordinates. /todo provide possibility to have different roots for different parallel geometries /todo prohibit multiple calls for one geometry (the root can only be defined once!) */ class DDRoot { public: DDRoot(); ~DDRoot(); //! set the root by using its qualified name DDName void set(const DDName& rootName); //! set DDLogicalPart root to the root void set(const DDLogicalPart& root); //! returns the root of the geometrical hierarchy DDLogicalPart root() const; private: DDLogicalPart root_; }; typedef DDI::Singleton<DDRoot> DDRootDef; #endif