CMS 3D CMS Logo

CSCGeometryBuilderFromDDD.cc
Go to the documentation of this file.
1 /*
2 // \class CSCGeometryBuilderFromDDD
3 //
4 // Description: CSC Geometry Builder for DD4hep
5 //
6 //
7 // \author Sergio Lo Meo (sergio.lo.meo@cern.ch) following what Ianna Osburne made for DTs (DD4HEP migration)
8 // Created: Thu, 05 March 2020
9 //
10 // Original author: Tim Cox
11 */
12 //
14 #include "CSCGeometryBuilder.h"
15 #include "CSCGeometryParsFromDD.h"
16 
19 
23 
25 
26 #include <utility>
27 
28 CSCGeometryBuilderFromDDD::CSCGeometryBuilderFromDDD() : myName("CSCGeometryBuilderFromDDD") {}
29 
31 // DDD
33  const DDCompactView* cview,
34  const MuonGeometryConstants& muonConstants) {
37 
38  // simple class just really a method to get the parameters... but I want this method
39  // available to classes other than CSCGeometryBuilderFromDDD so... simple class...
41  if (!cscp.build(cview, muonConstants, rig, rdp)) {
42  throw cms::Exception("CSCGeometryBuilderFromDDD", "Failed to build the necessary objects from the DDD");
43  }
44  CSCGeometryBuilder realbuilder;
45  realbuilder.build(geom, rig, rdp);
46 }
47 
48 // for DD4hep
49 
51  const cms::DDCompactView* cview,
52  const cms::MuonNumbering& muonConstants) {
55 
57  if (!cscp.build(cview, muonConstants, rig, rdp)) {
58  throw cms::Exception("CSCGeometryBuilderFromDDD", "Failed to build the necessary objects from the DD4HEP");
59  }
60 
61  CSCGeometryBuilder realbuilder;
62  realbuilder.build(geom, rig, rdp);
63 }
MuonGeometryConstants
Definition: MuonGeometryConstants.h:20
CSCGeometryParsFromDD::build
bool build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rig, CSCRecoDigiParameters &rdp)
Build the geometry returning the RecoIdealGeometry and the CSCRecoDigiParameters objects.
Definition: CSCGeometryParsFromDD.cc:48
CSCRecoDigiParameters
Definition: CSCRecoDigiParameters.h:18
CSCGeometryBuilder.h
CSCGeometryBuilderFromDDD::~CSCGeometryBuilderFromDDD
virtual ~CSCGeometryBuilderFromDDD()
Destructor.
Definition: CSCGeometryBuilderFromDDD.cc:30
CSCGeometryBuilderFromDDD::CSCGeometryBuilderFromDDD
CSCGeometryBuilderFromDDD()
Constructor.
Definition: CSCGeometryBuilderFromDDD.cc:28
CSCGeometry
Definition: CSCGeometry.h:24
CSCGeometryBuilder
Definition: CSCGeometryBuilder.h:20
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:80
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
CSCGeometryParsFromDD
Definition: CSCGeometryParsFromDD.h:32
DDFilteredView.h
CSCGeometryBuilder::build
void build(CSCGeometry &theGeometry, const RecoIdealGeometry &rig, const CSCRecoDigiParameters &cscpars)
Build the geometry.
Definition: CSCGeometryBuilder.cc:17
DDCompactView.h
RecoIdealGeometry.h
CSCRecoDigiParameters.h
CSCGeometryBuilderFromDDD::build
void build(CSCGeometry &geom, const DDCompactView *fv, const MuonGeometryConstants &muonConstants)
Definition: CSCGeometryBuilderFromDDD.cc:32
cms::MuonNumbering
Definition: DD4hep_MuonNumbering.h:37
CSCGeometryBuilderFromDDD.h
DD4hep_MuonNumbering.h
CSCGeometryParsFromDD.h
Exception
Definition: hltDiff.cc:246
cms::DDCompactView
Definition: DDCompactView.h:29
Exception.h
RecoIdealGeometry
Definition: RecoIdealGeometry.h:28