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
//
10
// Original author: Tim Cox
11
*/
12
//
13
#include "
CSCGeometryBuilderFromDDD.h
"
14
#include "
CSCGeometryBuilder.h
"
15
#include "
CSCGeometryParsFromDD.h
"
16
17
#include "
CondFormats/GeometryObjects/interface/RecoIdealGeometry.h
"
18
#include "
CondFormats/GeometryObjects/interface/CSCRecoDigiParameters.h
"
19
20
#include "
DetectorDescription/DDCMS/interface/DDFilteredView.h
"
21
#include "
DetectorDescription/DDCMS/interface/DDCompactView.h
"
22
#include "
Geometry/MuonNumbering/interface/DD4hep_MuonNumbering.h
"
23
24
#include "
FWCore/Utilities/interface/Exception.h
"
25
26
#include <utility>
27
28
CSCGeometryBuilderFromDDD::CSCGeometryBuilderFromDDD
() : myName(
"CSCGeometryBuilderFromDDD"
) {}
29
30
CSCGeometryBuilderFromDDD::~CSCGeometryBuilderFromDDD
() {}
31
// DDD
32
void
CSCGeometryBuilderFromDDD::build
(
CSCGeometry
&
geom
,
33
const
DDCompactView
* cview,
34
const
MuonGeometryConstants
& muonConstants) {
35
RecoIdealGeometry
rig;
36
CSCRecoDigiParameters
rdp;
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...
40
CSCGeometryParsFromDD
cscp;
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
50
void
CSCGeometryBuilderFromDDD::build
(
CSCGeometry
&
geom
,
51
const
cms::DDCompactView
* cview,
52
const
cms::MuonNumbering
& muonConstants) {
53
RecoIdealGeometry
rig;
54
CSCRecoDigiParameters
rdp;
55
56
CSCGeometryParsFromDD
cscp;
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
Generated for CMSSW Reference Manual by
1.8.16