CMS 3D CMS Logo

GEMGeometryParsFromDD.h
Go to the documentation of this file.
1 #ifndef Geometry_GEMGeometry_GEMGeometryParsFromDD_H
2 #define Geometry_GEMGeometry_GEMGeometryParsFromDD_H
3 
4 /* Implementation of the GEMGeometryParsFromDD Class
5  * Build the GEMGeometry from the DDD and DD4Hep description
6  *
7  * DD4hep part added to the original old file (DD version) made by M. Maggi (INFN Bari)
8  * Author: Sergio Lo Meo (sergio.lo.meo@cern.ch)
9  * Created: Mon, 15 Feb 2021
10  *
11  */
12 
13 #include <string>
14 #include <vector>
15 #include <map>
16 #include <list>
17 
18 class DDCompactView;
19 class DDFilteredView;
20 namespace cms { // DD4Hep
21  class DDFilteredView;
22  class DDCompactView;
23 } // namespace cms
25 class RecoIdealGeometry;
26 class GEMDetId;
27 
29 public:
31 
33 
34  // DD
35  void build(const DDCompactView* cview, const MuonGeometryConstants& muonConstants, RecoIdealGeometry& rgeo);
36  // DD4Hep
37  void build(const cms::DDCompactView* cview, const MuonGeometryConstants& muonConstants, RecoIdealGeometry& rgeo);
38 
39 private:
40  // DD
41  void buildGeometry(DDFilteredView& fview, const MuonGeometryConstants& muonConstants, RecoIdealGeometry& rgeo);
43  void buildChamber(DDFilteredView& fv, GEMDetId detId, RecoIdealGeometry& rgeo);
45 
46  std::vector<double> getTranslation(DDFilteredView& fv);
47  std::vector<double> getRotation(DDFilteredView& fv);
48 
49  // DD4Hep
50 
51  void buildGeometry(cms::DDFilteredView& fview, const MuonGeometryConstants& muonConstants, RecoIdealGeometry& rgeo);
55 
56  std::vector<double> getTranslation(cms::DDFilteredView& fv);
57  std::vector<double> getRotation(cms::DDFilteredView& fv);
58 };
59 #endif
MuonGeometryConstants
Definition: MuonGeometryConstants.h:20
GEMGeometryParsFromDD
Definition: GEMGeometryParsFromDD.h:28
GEMGeometryParsFromDD::getRotation
std::vector< double > getRotation(DDFilteredView &fv)
Definition: GEMGeometryParsFromDD.cc:212
GEMGeometryParsFromDD::~GEMGeometryParsFromDD
~GEMGeometryParsFromDD()
Definition: GEMGeometryParsFromDD.cc:33
cms::DDFilteredView
Definition: DDFilteredView.h:70
GEMGeometryParsFromDD::buildSuperChamber
void buildSuperChamber(DDFilteredView &fv, GEMDetId detId, RecoIdealGeometry &rgeo)
Definition: GEMGeometryParsFromDD.cc:104
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
GEMGeometryParsFromDD::build
void build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rgeo)
Definition: GEMGeometryParsFromDD.cc:37
GEMDetId
Definition: GEMDetId.h:18
GEMGeometryParsFromDD::buildEtaPartition
void buildEtaPartition(DDFilteredView &fv, GEMDetId detId, RecoIdealGeometry &rgeo)
Definition: GEMGeometryParsFromDD.cc:160
GEMGeometryParsFromDD::buildChamber
void buildChamber(DDFilteredView &fv, GEMDetId detId, RecoIdealGeometry &rgeo)
Definition: GEMGeometryParsFromDD.cc:134
cms::DDCompactView
Definition: DDCompactView.h:31
GEMGeometryParsFromDD::getTranslation
std::vector< double > getTranslation(DDFilteredView &fv)
Definition: GEMGeometryParsFromDD.cc:205
GEMGeometryParsFromDD::buildGeometry
void buildGeometry(DDFilteredView &fview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rgeo)
Definition: GEMGeometryParsFromDD.cc:50
DDFilteredView
Definition: DDFilteredView.h:20
RecoIdealGeometry
Definition: RecoIdealGeometry.h:28
GEMGeometryParsFromDD::GEMGeometryParsFromDD
GEMGeometryParsFromDD()
Definition: GEMGeometryParsFromDD.cc:31
cms
Namespace of DDCMS conversion namespace.
Definition: ProducerAnalyzer.cc:21