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 // Modified: Thu, 04 June 2020, following what made in PR #30047
10 //
11 // Original author: Tim Cox
12 */
13 //
15 #include "CSCGeometryBuilder.h"
16 #include "CSCGeometryParsFromDD.h"
22 #include <utility>
23 
24 CSCGeometryBuilderFromDDD::CSCGeometryBuilderFromDDD() : myName("CSCGeometryBuilderFromDDD") {}
25 
27 // DDD
29  const DDCompactView* cview,
30  const MuonGeometryConstants& muonConstants) {
33 
34  // simple class just really a method to get the parameters... but I want this method
35  // available to classes other than CSCGeometryBuilderFromDDD so... simple class...
37  if (!cscp.build(cview, muonConstants, rig, rdp)) {
38  throw cms::Exception("CSCGeometryBuilderFromDDD", "Failed to build the necessary objects from the DDD");
39  }
40  CSCGeometryBuilder realbuilder;
41  realbuilder.build(geom, rig, rdp);
42 }
43 
44 // for DD4hep
45 
47  const cms::DDCompactView* cview,
48  const MuonGeometryConstants& muonConstants) {
51 
53  if (!cscp.build(cview, muonConstants, rig, rdp)) {
54  throw cms::Exception("CSCGeometryBuilderFromDDD", "Failed to build the necessary objects from the DD4HEP");
55  }
56 
57  CSCGeometryBuilder realbuilder;
58  realbuilder.build(geom, rig, rdp);
59 }
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:39
CSCRecoDigiParameters
Definition: CSCRecoDigiParameters.h:18
CSCGeometryBuilder.h
CSCGeometryBuilderFromDDD::~CSCGeometryBuilderFromDDD
virtual ~CSCGeometryBuilderFromDDD()
Destructor.
Definition: CSCGeometryBuilderFromDDD.cc:26
CSCGeometryBuilderFromDDD::CSCGeometryBuilderFromDDD
CSCGeometryBuilderFromDDD()
Constructor.
Definition: CSCGeometryBuilderFromDDD.cc:24
CSCGeometry
Definition: CSCGeometry.h:24
CSCGeometryBuilder
Definition: CSCGeometryBuilder.h:20
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
CSCGeometryParsFromDD
Definition: CSCGeometryParsFromDD.h:29
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:28
CSCGeometryBuilderFromDDD.h
CSCGeometryParsFromDD.h
Exception
Definition: hltDiff.cc:246
cms::DDCompactView
Definition: DDCompactView.h:31
Exception.h
RecoIdealGeometry
Definition: RecoIdealGeometry.h:28