CMS 3D CMS Logo

GEMGeometryBuilderFromDDD.h
Go to the documentation of this file.
1 #ifndef Geometry_GEMGeometry_GEMGeometryBuilderFromDDD_H
2 #define Geometry_GEMGeometry_GEMGeometryBuilderFromDDD_H
3 
5 /*
6 //\class GEMGeometryBuilder
7 
8  Description: GEM Geometry builder from DD & DD4HEP
9  DD4hep part added to the original old file (DD version) made by M. Maggi (INFN Bari)
10 //
11 // Author: Sergio Lo Meo (sergio.lo.meo@cern.ch) following what Ianna Osburne made for DTs (DD4HEP migration)
12 // Created: 27 Jan 2020
13 */
14 #include <string>
15 #include <map>
16 #include <vector>
17 
18 class DDCompactView;
19 class DDFilteredView;
20 namespace cms {
21  class DDFilteredView;
22  class DDCompactView;
23  class MuonNumbering;
24  struct DDSpecPar;
25  struct DDSpecParRegistry;
26 } // namespace cms
27 class GEMGeometry;
28 class GEMDetId;
29 class GEMSuperChamber;
30 class GEMChamber;
31 class GEMEtaPartition;
33 
35 public:
37 
39 
40  // for DDD
41  void build(GEMGeometry& theGeometry, const DDCompactView* cview, const MuonGeometryConstants& muonConstants);
42  // for DD4hep
43  void build(GEMGeometry& theGeometry, const cms::DDCompactView* cview, const MuonGeometryConstants& muonConstants);
44 
45 private:
46  std::map<GEMDetId, std::vector<GEMDetId>> chids;
47 
48  // for DDD
50 
51  RCPBoundPlane boundPlane(const DDFilteredView& fv, Bounds* bounds, bool isOddChamber) const;
52 
54 
56 
58 
59  // for DD4hep
60 
61  RCPBoundPlane boundPlane(const cms::DDFilteredView& fv, Bounds* bounds, bool isOddChamber) const;
62 
64 
66 
68 };
69 
70 #endif
MuonGeometryConstants
Definition: MuonGeometryConstants.h:20
GEMGeometryBuilderFromDDD::boundPlane
RCPBoundPlane boundPlane(const DDFilteredView &fv, Bounds *bounds, bool isOddChamber) const
Definition: GEMGeometryBuilderFromDDD.cc:304
GEMSuperChamber
Definition: GEMSuperChamber.h:19
GEMEtaPartition
Definition: GEMEtaPartition.h:12
Bounds
Definition: Bounds.h:18
GEMGeometryBuilderFromDDD
Definition: GEMGeometryBuilderFromDDD.h:34
ReferenceCountingPointer
Definition: ReferenceCounted.h:60
cms::DDFilteredView
Definition: DDFilteredView.h:65
GEMGeometryBuilderFromDDD::GEMGeometryBuilderFromDDD
GEMGeometryBuilderFromDDD()
Definition: GEMGeometryBuilderFromDDD.cc:40
GEMGeometryBuilderFromDDD::build
void build(GEMGeometry &theGeometry, const DDCompactView *cview, const MuonGeometryConstants &muonConstants)
Definition: GEMGeometryBuilderFromDDD.cc:45
Plane.h
GEMGeometryBuilderFromDDD::buildEtaPartition
GEMEtaPartition * buildEtaPartition(DDFilteredView &fv, GEMDetId detId) const
Definition: GEMGeometryBuilderFromDDD.cc:257
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
GEMGeometryBuilderFromDDD::chids
std::map< GEMDetId, std::vector< GEMDetId > > chids
Definition: GEMGeometryBuilderFromDDD.h:46
GEMGeometryBuilderFromDDD::buildSuperChamber
GEMSuperChamber * buildSuperChamber(DDFilteredView &fv, GEMDetId detId) const
Definition: GEMGeometryBuilderFromDDD.cc:196
GEMDetId
Definition: GEMDetId.h:17
GEMChamber
Definition: GEMChamber.h:19
cms::DDCompactView
Definition: DDCompactView.h:29
GEMGeometryBuilderFromDDD::buildChamber
GEMChamber * buildChamber(DDFilteredView &fv, GEMDetId detId) const
Definition: GEMGeometryBuilderFromDDD.cc:229
DDFilteredView
Definition: DDFilteredView.h:20
MuonNumbering
GEMGeometry
Definition: GEMGeometry.h:24
GEMGeometryBuilderFromDDD::~GEMGeometryBuilderFromDDD
~GEMGeometryBuilderFromDDD()
Definition: GEMGeometryBuilderFromDDD.cc:42
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21
GEMGeometryBuilderFromDDD::RCPBoundPlane
ReferenceCountingPointer< BoundPlane > RCPBoundPlane
Definition: GEMGeometryBuilderFromDDD.h:49