CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DDDetector.h
Go to the documentation of this file.
1 #ifndef DetectorDescription_DDCMS_DDDetector_h
2 #define DetectorDescription_DDCMS_DDDetector_h
3 
5 #include <DD4hep/Detector.h>
6 #include <DD4hep/SpecParRegistry.h>
7 #include <string>
8 
9 class TGeoManager;
10 
11 namespace cms {
12  class DDDetector {
13  public:
14  explicit DDDetector(const std::string&, const std::string&, bool bigXML = false);
15  DDDetector() = delete;
16 
17  cms::DDVectorsMap const& vectors() const { return m_vectors; }
18 
19  dd4hep::PartSelectionMap const& partsels() const { return m_partsels; }
20 
21  dd4hep::SpecParRegistry const& specpars() const { return m_specpars; }
22 
25 
27  dd4hep::DetElement world() const;
28 
30  TGeoManager& manager() const;
31 
33  dd4hep::DetElement findElement(const std::string&) const;
34 
35  dd4hep::Detector const* description() const { return m_description; }
36 
37  private:
38  void process(const std::string&);
39  void processXML(const std::string&);
40 
43  dd4hep::PartSelectionMap m_partsels;
44  dd4hep::SpecParRegistry m_specpars;
46  };
47 } // namespace cms
48 
49 #endif
std::unordered_map< std::string, std::vector< double >> DDVectorsMap
Definition: DDNamespace.h:20
dd4hep::Detector * m_description
Definition: DDDetector.h:41
const std::string m_tag
Definition: DDDetector.h:45
DDDetector()=delete
dd4hep::DetElement findElement(const std::string &) const
Find DetElement as child of the top level volume by it&#39;s absolute path.
Definition: DDDetector.cc:75
cms::DDVectorsMap const & vectors() const
Definition: DDDetector.h:17
dd4hep::Detector const * description() const
Definition: DDDetector.h:35
dd4hep::DetElement world() const
Reference to the top-most (world) detector element.
Definition: DDDetector.cc:65
TGeoManager & manager() const
The geometry manager of this instance.
Definition: DDDetector.cc:70
dd4hep::PartSelectionMap m_partsels
Definition: DDDetector.h:43
dd4hep::Volume Volume
void process(const std::string &)
Definition: DDDetector.cc:43
dd4hep::SpecParRegistry m_specpars
Definition: DDDetector.h:44
dd4hep::Volume worldVolume() const
Handle to the world volume containing everything.
Definition: DDDetector.cc:60
void processXML(const std::string &)
Definition: DDDetector.cc:49
cms::DDVectorsMap m_vectors
Definition: DDDetector.h:42
dd4hep::SpecParRegistry const & specpars() const
Definition: DDDetector.h:21
dd4hep::PartSelectionMap const & partsels() const
Definition: DDDetector.h:19