Skip to content

Commit 3196c18

Browse files
authored
Merge pull request #45784 from Dr15Jones/fwGeomPhase2
Skip non-leaf GeomDets when dumping fireworks geometry
2 parents 39d9e04 + fb01256 commit 3196c18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Fireworks/Geometry/src/FWRecoGeometryESProducer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ void FWRecoGeometryESProducer::addPixelBarrelGeometry(FWRecoGeometry& fwRecoGeom
402402
++it) {
403403
const GeomDet* det = *it;
404404

405-
if (det) {
405+
if (det and det->isLeaf()) {
406406
DetId detid = det->geographicalId();
407407
unsigned int rawid = detid.rawId();
408408
unsigned int current = insert_id(rawid, fwRecoGeometry);

0 commit comments

Comments
 (0)