CMS 3D CMS Logo

DTGeometryParsFromDD.h
Go to the documentation of this file.
1 #ifndef DTGeometryBuilder_DTGeometryParsFromDD_h
2 #define DTGeometryBuilder_DTGeometryParsFromDD_h
3 
13 #include <vector>
14 
15 class DTGeometry;
16 class DDCompactView;
17 class DDFilteredView;
18 namespace cms { // DD4hep
19  class DDFilteredView;
20  class DDCompactView;
21 } // namespace cms
22 class DTChamber;
23 class DTSuperLayer;
24 class DTLayer;
25 class Bounds;
27 class RecoIdealGeometry;
28 
30 public:
33 
35  virtual ~DTGeometryParsFromDD();
36 
37  // DD
38  void build(const DDCompactView* cview, const MuonGeometryConstants& muonConstants, RecoIdealGeometry& rig);
39 
40  // DD4hep
41  void build(const cms::DDCompactView* cview, const MuonGeometryConstants& muonConstants, RecoIdealGeometry& rgeo);
42 
44 
45 private:
46  // DD
49  const std::string& type,
50  const MuonGeometryConstants& muonConstants,
51  RecoIdealGeometry& rig) const;
52 
55  const std::string& type,
56  const MuonGeometryConstants& muonConstants,
57  RecoIdealGeometry& rig) const;
58 
60  void insertLayer(DDFilteredView& fv,
61  const std::string& type,
62  const MuonGeometryConstants& muonConstants,
63  RecoIdealGeometry& rig) const;
64 
66  std::vector<double> extractParameters(DDFilteredView& fv) const;
67 
68  typedef std::pair<std::vector<double>, std::vector<double> > PosRotPair;
69 
70  PosRotPair plane(const DDFilteredView& fv) const;
71 
72  void buildGeometry(DDFilteredView& fv, const MuonGeometryConstants& muonConstants, RecoIdealGeometry& rig) const;
73 
74  // DD4hep
75 
76  void buildGeometry(cms::DDFilteredView& fv, const MuonGeometryConstants& muonConstants, RecoIdealGeometry& rig) const;
77 
79  void insertChamber(cms::DDFilteredView& fv, const MuonGeometryConstants& muonConstants, RecoIdealGeometry& rig) const;
80 
83  const MuonGeometryConstants& muonConstants,
84  RecoIdealGeometry& rig) const;
85 
87  void insertLayer(cms::DDFilteredView& fv, const MuonGeometryConstants& muonConstants, RecoIdealGeometry& rig) const;
88 
89  PosRotPair plane(const cms::DDFilteredView& fv) const;
90 };
91 #endif
void build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rig)
PosRotPair plane(const DDFilteredView &fv) const
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
virtual ~DTGeometryParsFromDD()
Destructor.
void buildGeometry(DDFilteredView &fv, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rig) const
std::vector< double > extractParameters(DDFilteredView &fv) const
get parameter also for boolean solid.
void insertLayer(DDFilteredView &fv, const std::string &type, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rig) const
create the layer
DTGeometryParsFromDD()
Constructor.
Namespace of DDCMS conversion namespace.
void insertChamber(DDFilteredView &fv, const std::string &type, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rig) const
create the chamber
std::pair< std::vector< double >, std::vector< double > > PosRotPair
void insertSuperLayer(DDFilteredView &fv, const std::string &type, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rig) const
create the SL
Definition: Bounds.h:18