Skip to content

Commit 1c5d583

Browse files
authored
Merge pull request #47848 from bsunanda/Phase2-hgx363G
Phase2-hgx363G Correct the DD4hep algorithm for the HGCaal passive elements
2 parents ab5d1c0 + cf707b2 commit 1c5d583

File tree

2 files changed

+22
-20
lines changed

2 files changed

+22
-20
lines changed

Geometry/HGCalCommonData/data/dd4hep/testHGCalV19.xml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
<Include ref="Geometry/CMSCommonData/data/rotations.xml"/>
99
<Include ref="Geometry/CMSCommonData/data/extend/v2/cmsextent.xml"/>
1010
<Include ref="Geometry/CMSCommonData/data/cavernData/2021/v1/cavernData.xml"/>
11-
<Include ref="Geometry/CMSCommonData/data/cms/2026/v5/cms.xml"/>
11+
<Include ref="Geometry/CMSCommonData/data/cms/2030/v5/cms.xml"/>
1212
<Include ref="Geometry/CMSCommonData/data/cmsMother.xml"/>
1313
<Include ref="Geometry/CMSCommonData/data/eta3/etaMax.xml"/>
1414
<Include ref="Geometry/CMSCommonData/data/cmsTracker.xml"/>
15-
<Include ref="Geometry/CMSCommonData/data/caloBase/2026/v8/caloBase.xml"/>
15+
<Include ref="Geometry/CMSCommonData/data/caloBase/2030/v8/caloBase.xml"/>
1616
<Include ref="Geometry/CMSCommonData/data/cmsCalo.xml"/>
17-
<Include ref="Geometry/CMSCommonData/data/muonBase/2026/v5/muonBase.xml"/>
17+
<Include ref="Geometry/CMSCommonData/data/muonBase/2030/v5/muonBase.xml"/>
1818
<Include ref="Geometry/CMSCommonData/data/cmsMuon.xml"/>
1919
<Include ref="Geometry/CMSCommonData/data/mgnt.xml"/>
20-
<Include ref="Geometry/CMSCommonData/data/beampipe/2026/v3/beampipe.xml"/>
21-
<Include ref="Geometry/CMSCommonData/data/cmsBeam/2026/v1/cmsBeam.xml"/>
20+
<Include ref="Geometry/CMSCommonData/data/beampipe/2030/v3/beampipe.xml"/>
21+
<Include ref="Geometry/CMSCommonData/data/cmsBeam/2030/v1/cmsBeam.xml"/>
2222
<Include ref="Geometry/CMSCommonData/data/muonMB.xml"/>
2323
<Include ref="Geometry/CMSCommonData/data/muonMagnet.xml"/>
2424
<Include ref="Geometry/CMSCommonData/data/cavern/2021/v1/cavern.xml"/>
@@ -42,9 +42,9 @@
4242
<Include ref="Geometry/TrackerSimData/data/PhaseII/Tracker_DD4hep_compatible_2021_02/trackerProdCuts.xml"/>
4343
<Include ref="Geometry/TrackerSimData/data/PhaseII/Tracker_DD4hep_compatible_2021_02/pixelProdCuts.xml"/>
4444
<Include ref="Geometry/TrackerSimData/data/trackerProdCutsBEAM.xml"/>
45-
<Include ref="Geometry/EcalCommonData/data/eregalgo/2026/v2/eregalgo.xml"/>
46-
<Include ref="Geometry/EcalCommonData/data/ectkcable/2026/v1/ectkcable.xml"/>
47-
<Include ref="Geometry/EcalCommonData/data/ectkcablemat/2026/v2/ectkcablemat.xml"/>
45+
<Include ref="Geometry/EcalCommonData/data/eregalgo/2030/v2/eregalgo.xml"/>
46+
<Include ref="Geometry/EcalCommonData/data/ectkcable/2030/v1/ectkcable.xml"/>
47+
<Include ref="Geometry/EcalCommonData/data/ectkcablemat/2030/v2/ectkcablemat.xml"/>
4848
<Include ref="Geometry/EcalCommonData/data/ebalgo.xml"/>
4949
<Include ref="Geometry/EcalCommonData/data/ebcon/2021/v1/ebcon.xml"/>
5050
<Include ref="Geometry/EcalCommonData/data/ebrot.xml"/>
@@ -73,22 +73,22 @@
7373
<Include ref="Geometry/MuonCommonData/data/mb3/2015/v2/mb3.xml"/>
7474
<Include ref="Geometry/MuonCommonData/data/mb4/2015/v2/mb4.xml"/>
7575
<Include ref="Geometry/MuonCommonData/data/mb4Shield/2021/v1/mb4Shield.xml"/>
76-
<Include ref="Geometry/MuonCommonData/data/muonYoke/2026/v3/muonYoke.xml"/>
77-
<Include ref="Geometry/MuonCommonData/data/mf/2026/v8/mf.xml"/>
76+
<Include ref="Geometry/MuonCommonData/data/muonYoke/2030/v3/muonYoke.xml"/>
77+
<Include ref="Geometry/MuonCommonData/data/mf/2030/v8/mf.xml"/>
7878
<Include ref="Geometry/MuonCommonData/data/csc/2021/v2/csc.xml"/>
79-
<Include ref="Geometry/MuonCommonData/data/rpcf/2026/v3/rpcf.xml"/>
79+
<Include ref="Geometry/MuonCommonData/data/rpcf/2030/v3/rpcf.xml"/>
8080
<Include ref="Geometry/MuonCommonData/data/gemf/TDR_BaseLine/gemf.xml"/>
8181
<Include ref="Geometry/MuonCommonData/data/gem11/TDR_BaseLine/gem11.xml"/>
8282
<Include ref="Geometry/MuonCommonData/data/gem21/TDR_Eta16/gem21.xml"/>
83-
<Include ref="Geometry/MuonCommonData/data/mfshield/2026/v6/mfshield.xml"/>
83+
<Include ref="Geometry/MuonCommonData/data/mfshield/2030/v6/mfshield.xml"/>
8484
<Include ref="Geometry/MuonCommonData/data/ge0/TDR_Dev/v4/ge0.xml"/>
85-
<Include ref="Geometry/MuonCommonData/data/ge0shield/2026/v1/ge0shield.xml"/>
86-
<Include ref="Geometry/ForwardCommonData/data/forwardshield/2026/v4/forwardshield.xml"/>
85+
<Include ref="Geometry/MuonCommonData/data/ge0shield/2030/v1/ge0shield.xml"/>
86+
<Include ref="Geometry/ForwardCommonData/data/forwardshield/2030/v4/forwardshield.xml"/>
8787
<Include ref="Geometry/ForwardCommonData/data/zdcmaterials/2021/v1/zdcmaterials.xml"/>
8888
<Include ref="Geometry/ForwardCommonData/data/lumimaterials.xml"/>
8989
<Include ref="Geometry/ForwardCommonData/data/zdcrotations.xml"/>
9090
<Include ref="Geometry/ForwardCommonData/data/lumirotations.xml"/>
91-
<Include ref="Geometry/ForwardCommonData/data/zdc/2026/v1/zdc.xml"/>
91+
<Include ref="Geometry/ForwardCommonData/data/zdc/2030/v1/zdc.xml"/>
9292
<Include ref="Geometry/ForwardCommonData/data/zdclumi/2021/v2/zdclumi.xml"/>
9393
<Include ref="Geometry/ForwardCommonData/data/cmszdc.xml"/>
9494
<Include ref="Geometry/MTDCommonData/data/mtdMaterial/v3/mtdMaterial.xml"/>
@@ -102,21 +102,21 @@
102102
<Include ref="Geometry/HcalSimData/data/hf.xml"/>
103103
<Include ref="Geometry/HcalSimData/data/hfpmt.xml"/>
104104
<Include ref="Geometry/HcalSimData/data/hffibrebundle.xml"/>
105-
<Include ref="Geometry/HcalSimData/data/CaloUtil/2026/v2c/CaloUtil.xml"/>
105+
<Include ref="Geometry/HcalSimData/data/CaloUtil/2030/v2c/CaloUtil.xml"/>
106106
<Include ref="Geometry/HGCalSimData/data/hgcsensv17n.xml"/>
107107
<Include ref="Geometry/MuonSimData/data/PhaseII/v2/muonSens.xml"/>
108108
<Include ref="Geometry/DTGeometryBuilder/data/dtSpecsFilter/2021/v1/dtSpecsFilter.xml"/>
109109
<Include ref="Geometry/CSCGeometryBuilder/data/cscSpecsFilter.xml"/>
110110
<Include ref="Geometry/CSCGeometryBuilder/data/cscSpecs.xml"/>
111-
<Include ref="Geometry/RPCGeometryBuilder/data/2026/v1/RPCSpecs.xml"/>
111+
<Include ref="Geometry/RPCGeometryBuilder/data/2030/v1/RPCSpecs.xml"/>
112112
<Include ref="Geometry/GEMGeometryBuilder/data/v12/GEMSpecsFilter.xml"/>
113113
<Include ref="Geometry/GEMGeometryBuilder/data/v12/GEMSpecs.xml"/>
114114
<Include ref="Geometry/ForwardSimData/data/zdcsens.xml"/>
115115
<Include ref="Geometry/MTDSimData/data/v2/mtdsens.xml"/>
116-
<Include ref="Geometry/HcalSimData/data/HcalProdCuts/2026/v1/HcalProdCuts.xml"/>
116+
<Include ref="Geometry/HcalSimData/data/HcalProdCuts/2030/v1/HcalProdCuts.xml"/>
117117
<Include ref="Geometry/EcalSimData/data/EcalProdCuts.xml"/>
118118
<Include ref="Geometry/HGCalSimData/data/hgcProdCutsv15.xml"/>
119-
<Include ref="Geometry/MuonSimData/data/muonProdCuts/2026/v2/muonProdCuts.xml"/>
119+
<Include ref="Geometry/MuonSimData/data/muonProdCuts/2030/v2/muonProdCuts.xml"/>
120120
<Include ref="Geometry/ForwardSimData/data/zdcProdCuts.xml"/>
121121
<Include ref="Geometry/ForwardSimData/data/ForwardShieldProdCuts.xml"/>
122122
<Include ref="Geometry/MTDSimData/data/v2/mtdProdCuts.xml"/>

Geometry/HGCalCommonData/plugins/dd4hep/DDHGCalPassive.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ struct HGCalPassive {
118118
ns.addSolidNS(ns.prepend(parentname), solid);
119119
dd4hep::Material matter = ns.material(moduleMaterial);
120120
dd4hep::Volume glogM = dd4hep::Volume(solid.name(), solid, matter);
121+
ns.addVolumeNS(glogM);
121122
#ifdef EDM_ML_DEBUG
122123
edm::LogVerbatim("HGCalGeom") << "DDHGCalPassive: " << solid.name() << " extruded polygon made of "
123124
<< matter.name() << " z|x|y|s (0) " << zw[0] << ":" << zx[0] << ":" << zy[0]
@@ -140,6 +141,7 @@ struct HGCalPassive {
140141
ns.addSolidNS(ns.prepend(layerName), solid);
141142
matter = ns.material(layerMaterials[i]);
142143
glogs[i] = dd4hep::Volume(solid.name(), solid, matter);
144+
ns.addVolumeNS(glogs[i]);
143145
#ifdef EDM_ML_DEBUG
144146
edm::LogVerbatim("HGCalGeom")
145147
<< "DDHGCalPassive: Layer " << i << ":" << l << ":" << solid.name() << " extruded polygon made of "
@@ -155,7 +157,7 @@ struct HGCalPassive {
155157
#ifdef EDM_ML_DEBUG
156158
edm::LogVerbatim("HGCalGeom")
157159
<< "DDHGCalPassive: " << glogs[i].name() << " number " << copyNumber[i] << " positioned in "
158-
<< glogM.name() << " at (0, 0, " << cms::convert2mm(zi + 0.5 * layerThick[i]) << ") with no rotation";
160+
<< glogM.name() << " at (0,0," << cms::convert2mm(zi + 0.5 * layerThick[i]) << ") with no rotation";
159161
#endif
160162
++copyNumber[i];
161163
zi += layerThick[i];

0 commit comments

Comments
 (0)