CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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"
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 }
void build(CSCGeometry &geom, const DDCompactView *fv, const MuonGeometryConstants &muonConstants)
Compact representation of the geometrical detector hierarchy.
Definition: DDCompactView.h:81
void build(CSCGeometry &theGeometry, const RecoIdealGeometry &rig, const CSCRecoDigiParameters &cscpars)
Build the geometry.
virtual ~CSCGeometryBuilderFromDDD()
Destructor.
bool build(const DDCompactView *cview, const MuonGeometryConstants &muonConstants, RecoIdealGeometry &rig, CSCRecoDigiParameters &rdp)
Build the geometry returning the RecoIdealGeometry and the CSCRecoDigiParameters objects.