Skip to content

Commit 7b66901

Browse files
authored
Merge pull request cms-sw#34088 from cvuosalo/validation-fixes
[DD4hep] Minor size correction of 0.1 to 7 degrees in phi for tube shapes that are non-sensitive TIB pillars and ribs
2 parents 5d65f68 + a5b80a1 commit 7b66901

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Geometry/EcalCommonData/plugins/dd4hep/DDEcalBarrelNewAlgo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ static long algorithm(dd4hep::Detector& /* description */, cms::DDParsingContext
15591559
);
15601560

15611561
const string cryDDName(cry.name + sType);
1562-
Solid crySolid = mytrap(cry.name, trapCry);
1562+
Solid crySolid = mytrap(cryDDName, trapCry);
15631563
Volume cryLog = Volume(cryDDName, crySolid, ns.material(cry.mat));
15641564

15651565
//++++++++++++++++++++++++++++++++++ APD ++++++++++++++++++++++++++++++++++

Geometry/TrackerCommonData/plugins/dd4hep/DDTIBLayerAlgo.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static long algorithm(Detector& /* description */, cms::DDParsingContext& contex
252252
double dz = 0.5 * layerL - 2. * fillerDz;
253253
double _rmi = std::min(rin + 0.5 * dd4hep::mm, rout - 0.5 * dd4hep::mm);
254254
double _rma = std::max(rin + 0.5 * dd4hep::mm, rout - 0.5 * dd4hep::mm);
255-
solid = ns.addSolidNS(name, Tube(_rmi, _rma, dz, -0.5 * width, width));
255+
solid = ns.addSolidNS(name, Tube(_rmi, _rma, dz, -0.5 * width, 0.5 * width));
256256
LogDebug("TIBGeom") << solid.name() << " Tubs made of " << ribMat << " from " << -0.5 * convertRadToDeg(width)
257257
<< " to " << 0.5 * convertRadToDeg(width) << " with Rin " << rin + 0.5 * dd4hep::mm << " Rout "
258258
<< rout - 0.5 * dd4hep::mm << " ZHalf " << dz;
@@ -490,7 +490,7 @@ static long algorithm(Detector& /* description */, cms::DDParsingContext& contex
490490
break;
491491
}
492492

493-
solid = ns.addSolidNS(name, Tube(pillarRin, pillarRout, pillarDz, -pillarDPhi, 2. * pillarDPhi));
493+
solid = ns.addSolidNS(name, Tube(pillarRin, pillarRout, pillarDz, -pillarDPhi, pillarDPhi));
494494
Volume Pillar = ns.addVolumeNS(Volume(name, solid, ns.material(pillarMaterial)));
495495
LogDebug("TIBGeom") << solid.name() << " Tubs made of " << pillarMaterial << " from " << -pillarDPhi << " to "
496496
<< pillarDPhi << " with Rin " << pillarRin << " Rout " << pillarRout << " ZHalf " << pillarDz;

0 commit comments

Comments
 (0)