CMS 3D CMS Logo

ME0GeometryBuilder.h
Go to the documentation of this file.
1 #ifndef Geometry_GEMGeometry_ME0GeometryBuilder_H
2 #define Geometry_GEMGeometry_ME0GeometryBuilder_H
3 /*
4 //\class ME0GeometryBuilder
5 
6  Description: ME0 Geometry builder for DD4HEP
7  DD4hep part added to the original old file (DD version) made by M. Maggi (INFN Bari)
8 //
9 // Author: Sergio Lo Meo (sergio.lo.meo@cern.ch) following what Ianna Osborne made for DTs (DD4HEP migration)
10 // Created: 29 Apr 2019
11 */
12 
15 #include <string>
16 #include <map>
17 #include <vector>
18 
19 class DDCompactView;
20 class DDFilteredView;
21 namespace cms {
22  class DDFilteredView;
23  class DDCompactView;
24 } // namespace cms
25 class ME0Geometry;
26 class ME0Chamber;
27 class ME0Layer;
28 class ME0EtaPartition;
30 
32 public:
34 
36 
37  ME0Geometry* build(const DDCompactView* cview, const MuonGeometryConstants& muonConstants);
38  //dd4hep
39  ME0Geometry* build(const cms::DDCompactView* cview, const MuonGeometryConstants& muonConstants);
40 
41 private:
42  ME0Geometry* buildGeometry(DDFilteredView& fview, const MuonGeometryConstants& muonConstants);
43  std::map<ME0DetId, std::vector<ME0DetId>> chids;
44 
46 
47  ME0BoundPlane boundPlane(const DDFilteredView& fv, Bounds* bounds, bool isOddChamber) const;
48 
50 
51  ME0Layer* buildLayer(DDFilteredView& fv, ME0DetId detId) const;
52 
54  //dd4hep
56 
57  ME0BoundPlane boundPlane(const cms::DDFilteredView& fv, Bounds* bounds, bool isOddChamber) const;
58 
60 
62 
64 };
65 
66 #endif
MuonGeometryConstants
Definition: MuonGeometryConstants.h:20
ME0Geometry
Definition: ME0Geometry.h:12
ME0DetId.h
Bounds
Definition: Bounds.h:18
ReferenceCountingPointer
Definition: ReferenceCounted.h:60
cms::DDFilteredView
Definition: DDFilteredView.h:70
ME0GeometryBuilder::ME0GeometryBuilder
ME0GeometryBuilder()
Definition: ME0GeometryBuilder.cc:37
Plane.h
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
ME0GeometryBuilder::~ME0GeometryBuilder
~ME0GeometryBuilder()
Definition: ME0GeometryBuilder.cc:39
ME0GeometryBuilder::buildChamber
ME0Chamber * buildChamber(DDFilteredView &fv, ME0DetId detId) const
Definition: ME0GeometryBuilder.cc:229
ME0Layer
Definition: ME0Layer.h:9
ME0Chamber
Definition: ME0Chamber.h:10
ME0GeometryBuilder::ME0BoundPlane
ReferenceCountingPointer< BoundPlane > ME0BoundPlane
Definition: ME0GeometryBuilder.h:45
ME0GeometryBuilder
Definition: ME0GeometryBuilder.h:31
ME0DetId
Definition: ME0DetId.h:16
ME0GeometryBuilder::build
ME0Geometry * build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants)
Definition: ME0GeometryBuilder.cc:41
ME0GeometryBuilder::buildEtaPartition
ME0EtaPartition * buildEtaPartition(DDFilteredView &fv, ME0DetId detId) const
Definition: ME0GeometryBuilder.cc:283
cms::DDCompactView
Definition: DDCompactView.h:31
DDFilteredView
Definition: DDFilteredView.h:20
ME0GeometryBuilder::buildLayer
ME0Layer * buildLayer(DDFilteredView &fv, ME0DetId detId) const
Definition: ME0GeometryBuilder.cc:256
ME0GeometryBuilder::buildGeometry
ME0Geometry * buildGeometry(DDFilteredView &fview, const MuonGeometryConstants &muonConstants)
Definition: ME0GeometryBuilder.cc:58
ME0GeometryBuilder::boundPlane
ME0BoundPlane boundPlane(const DDFilteredView &fv, Bounds *bounds, bool isOddChamber) const
Definition: ME0GeometryBuilder.cc:335
ME0GeometryBuilder::chids
std::map< ME0DetId, std::vector< ME0DetId > > chids
Definition: ME0GeometryBuilder.h:43
ME0EtaPartition
Definition: ME0EtaPartition.h:12
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21