CMS 3D CMS Logo

DDCompactView.h
Go to the documentation of this file.
1 #ifndef DETECTOR_DESCRIPTION_DD_COMPACT_VIEW_H
2 #define DETECTOR_DESCRIPTION_DD_COMPACT_VIEW_H
3 
4 // -*- C++ -*-
5 //
6 // Package: DetectorDescription/Core
7 // Class: DDCompactView
8 //
18 //
19 // Original Author: Ianna Osborne
20 // Created: Wed, 22 May 2019 12:51:22 GMT
21 //
22 //
23 
26 
27 namespace cms {
28 
29  class DDCompactView {
30  public:
31  DDCompactView(const cms::DDDetector& det) : m_det(det) {}
32  const cms::DDDetector* detector() const { return &m_det; }
33  DDSpecParRegistry const& specpars() const { return m_det.specpars(); }
34  template <typename T>
35  std::vector<T> getVector(std::string_view) const;
36 
37  private:
39  };
40 } // namespace cms
41 
42 #endif
DDSpecParRegistry const & specpars() const
Definition: DDDetector.h:26
const cms::DDDetector & m_det
Definition: DDCompactView.h:38
Namespace of DDCMS conversion namespace.
DDCompactView(const cms::DDDetector &det)
Definition: DDCompactView.h:31
std::vector< T > getVector(std::string_view) const
DDSpecParRegistry const & specpars() const
Definition: DDCompactView.h:33
const cms::DDDetector * detector() const
Definition: DDCompactView.h:32