CMS 3D CMS Logo

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
cms::DDDetector::m_tag
const std::string m_tag
Definition: DDDetector.h:45
cms::DDDetector::manager
TGeoManager & manager() const
The geometry manager of this instance.
Definition: DDDetector.cc:50
cms::DDDetector::specpars
dd4hep::SpecParRegistry const & specpars() const
Definition: DDDetector.h:21
cms::DDDetector::world
dd4hep::DetElement world() const
Reference to the top-most (world) detector element.
Definition: DDDetector.cc:45
cms::DDDetector::vectors
cms::DDVectorsMap const & vectors() const
Definition: DDDetector.h:17
cms::DDDetector::DDDetector
DDDetector()=delete
cms::DDDetector::description
dd4hep::Detector const * description() const
Definition: DDDetector.h:35
cms::DDDetector::process
void process(const std::string &)
Definition: DDDetector.cc:24
DDVectorRegistry.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cms::DDDetector::m_partsels
dd4hep::PartSelectionMap m_partsels
Definition: DDDetector.h:43
cms::Volume
dd4hep::Volume Volume
Definition: DDFilteredView.h:47
cms::DDDetector::worldVolume
dd4hep::Volume worldVolume() const
Handle to the world volume containing everything.
Definition: DDDetector.cc:40
align::Detector
Definition: StructureType.h:86
cms::DDDetector::m_specpars
dd4hep::SpecParRegistry m_specpars
Definition: DDDetector.h:44
cms::DDDetector::m_vectors
cms::DDVectorsMap m_vectors
Definition: DDDetector.h:42
cms::DDDetector
Definition: DDDetector.h:12
cms::DDVectorsMap
std::unordered_map< std::string, std::vector< double > > DDVectorsMap
Definition: DDNamespace.h:14
cms::DDDetector::processXML
void processXML(const std::string &)
Definition: DDDetector.cc:30
cms::DDDetector::m_description
dd4hep::Detector * m_description
Definition: DDDetector.h:41
cms::DDDetector::findElement
dd4hep::DetElement findElement(const std::string &) const
Find DetElement as child of the top level volume by it's absolute path.
Definition: DDDetector.cc:55
cms::DDDetector::partsels
dd4hep::PartSelectionMap const & partsels() const
Definition: DDDetector.h:19
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21