Geometry
CSCGeometryBuilder
src
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
//
14
#include "
CSCGeometryBuilderFromDDD.h
"
15
#include "
CSCGeometryBuilder.h
"
16
#include "
Geometry/CSCGeometryBuilder/interface/CSCGeometryParsFromDD.h
"
17
#include "
CondFormats/GeometryObjects/interface/RecoIdealGeometry.h
"
18
#include "
CondFormats/GeometryObjects/interface/CSCRecoDigiParameters.h
"
19
#include "
DetectorDescription/DDCMS/interface/DDFilteredView.h
"
20
#include "
DetectorDescription/DDCMS/interface/DDCompactView.h
"
21
#include "
FWCore/Utilities/interface/Exception.h
"
22
#include <utility>
23
24
CSCGeometryBuilderFromDDD::CSCGeometryBuilderFromDDD
() : myName(
"CSCGeometryBuilderFromDDD"
) {}
25
26
CSCGeometryBuilderFromDDD::~CSCGeometryBuilderFromDDD
() {}
27
// DDD
28
void
CSCGeometryBuilderFromDDD::build
(
CSCGeometry
&
geom
,
29
const
DDCompactView
* cview,
30
const
MuonGeometryConstants
& muonConstants) {
31
RecoIdealGeometry
rig;
32
CSCRecoDigiParameters
rdp;
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...
36
CSCGeometryParsFromDD
cscp;
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
46
void
CSCGeometryBuilderFromDDD::build
(
CSCGeometry
&
geom
,
47
const
cms::DDCompactView
* cview,
48
const
MuonGeometryConstants
& muonConstants) {
49
RecoIdealGeometry
rig;
50
CSCRecoDigiParameters
rdp;
51
52
CSCGeometryParsFromDD
cscp;
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
}
cms::DDCompactView
Definition:
DDCompactView.h:31
CSCGeometryBuilderFromDDD::build
void build(CSCGeometry &geom, const DDCompactView *fv, const MuonGeometryConstants &muonConstants)
Definition:
CSCGeometryBuilderFromDDD.cc:28
Exception
Definition:
hltDiff.cc:245
CSCRecoDigiParameters.h
CSCGeometry
Definition:
CSCGeometry.h:24
CSCGeometryBuilder.h
DDCompactView
Compact representation of the geometrical detector hierarchy.
Definition:
DDCompactView.h:81
CSCGeometryBuilder::build
void build(CSCGeometry &theGeometry, const RecoIdealGeometry &rig, const CSCRecoDigiParameters &cscpars)
Build the geometry.
Definition:
CSCGeometryBuilder.cc:17
CSCGeometryParsFromDD
Definition:
CSCGeometryParsFromDD.h:29
CSCGeometryParsFromDD.h
CSCGeometryBuilder
Definition:
CSCGeometryBuilder.h:20
DDFilteredView.h
CSCGeometryBuilderFromDDD::~CSCGeometryBuilderFromDDD
virtual ~CSCGeometryBuilderFromDDD()
Destructor.
Definition:
CSCGeometryBuilderFromDDD.cc:26
RecoIdealGeometry.h
DDCompactView.h
relativeConstraints.geom
geom
Definition:
relativeConstraints.py:72
CSCGeometryBuilderFromDDD::CSCGeometryBuilderFromDDD
CSCGeometryBuilderFromDDD()
Constructor.
Definition:
CSCGeometryBuilderFromDDD.cc:24
Exception.h
RecoIdealGeometry
Definition:
RecoIdealGeometry.h:28
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:41
MuonGeometryConstants
Definition:
MuonGeometryConstants.h:20
CSCRecoDigiParameters
Definition:
CSCRecoDigiParameters.h:18
CSCGeometryBuilderFromDDD.h
Generated for CMSSW Reference Manual by
1.8.14