CMS 3D CMS Logo

DTGeometryBuilderFromDDD.h
Go to the documentation of this file.
1 #ifndef DTGeometryBuilder_DTGeometryBuilderFromDDD_h
2 #define DTGeometryBuilder_DTGeometryBuilderFromDDD_h
3 
14 
15 #include <vector>
16 
17 class DTGeometry;
18 class DDCompactView;
19 class DDFilteredView;
20 class DTChamber;
21 class DTSuperLayer;
22 class DTLayer;
23 class Bounds;
25 
26 namespace dtGeometryBuilder {
27  // Helper function from DTGeometryBuilderFromCondDB.cc
28  RectangularPlaneBounds* getRecPlaneBounds(const std::vector<double>::const_iterator& shapeStart);
29 } // namespace dtGeometryBuilder
30 
32 public:
35 
37  virtual ~DTGeometryBuilderFromDDD();
38 
39  // Operations
40  void build(DTGeometry& theGeometry, const DDCompactView* cview, const MuonGeometryConstants& muonConstants);
41 
42 private:
45  const std::string& type,
46  const MuonGeometryConstants& muonConstants) const;
47 
51  const std::string& type,
52  const MuonGeometryConstants& muonConstants) const;
53 
56  DTSuperLayer* sl,
57  const std::string& type,
58  const MuonGeometryConstants& muonConstants) const;
59 
61  std::vector<double> extractParameters(DDFilteredView& fv) const;
62 
64 
65  RCPPlane plane(const DDFilteredView& fv, Bounds* bounds) const;
66 
67  void buildGeometry(DTGeometry& theGeometry, DDFilteredView& fv, const MuonGeometryConstants& muonConstants) const;
68 };
69 #endif
virtual ~DTGeometryBuilderFromDDD()
Destructor.
void buildGeometry(DTGeometry &theGeometry, DDFilteredView &fv, const MuonGeometryConstants &muonConstants) const
RectangularPlaneBounds * getRecPlaneBounds(const std::vector< double >::const_iterator &shapeStart)
void build(DTGeometry &theGeometry, const DDCompactView *cview, const MuonGeometryConstants &muonConstants)
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
RCPPlane plane(const DDFilteredView &fv, Bounds *bounds) const
std::vector< double > extractParameters(DDFilteredView &fv) const
get parameter also for boolean solid.
DTChamber * buildChamber(DDFilteredView &fv, const std::string &type, const MuonGeometryConstants &muonConstants) const
create the chamber
DTSuperLayer * buildSuperLayer(DDFilteredView &fv, DTChamber *chamber, const std::string &type, const MuonGeometryConstants &muonConstants) const
create the SL
DTLayer * buildLayer(DDFilteredView &fv, DTSuperLayer *sl, const std::string &type, const MuonGeometryConstants &muonConstants) const
create the layer
ReferenceCountingPointer< Plane > RCPPlane
Definition: Bounds.h:18