Skip to content

Commit

Permalink
skip pixel dets that are not associated to a geomDetUnit in PixelTopo…
Browse files Browse the repository at this point in the history
…logyMap
  • Loading branch information
mmusich committed Aug 23, 2024
1 parent 0829a4b commit 9c57448
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Geometry/TrackerGeometryBuilder/src/PixelTopologyMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ void PixelTopologyMap::buildTopologyMaps() {
for (auto det : m_trackerGeom->detsPXB()) {
const PixelGeomDetUnit* pixelDet = dynamic_cast<const PixelGeomDetUnit*>(det);

// discard dets that are not a geomDetUnit
if (!pixelDet)
continue;

const auto& layer = m_trackerTopo->pxbLayer(pixelDet->geographicalId());
const auto& ladder = m_trackerTopo->pxbLadder(pixelDet->geographicalId());
const auto& module = m_trackerTopo->pxbModule(pixelDet->geographicalId());
Expand Down Expand Up @@ -56,6 +60,10 @@ void PixelTopologyMap::buildTopologyMaps() {
for (auto det : m_trackerGeom->detsPXF()) {
const PixelGeomDetUnit* pixelDet = dynamic_cast<const PixelGeomDetUnit*>(det);

// discard dets that are not a geomDetUnit
if (!pixelDet)
continue;

const auto& disk = m_trackerTopo->pxfDisk(pixelDet->geographicalId());
const auto& blade = m_trackerTopo->pxfBlade(pixelDet->geographicalId());
const auto& pxf_module = m_trackerTopo->pxfModule(pixelDet->geographicalId());
Expand Down

0 comments on commit 9c57448

Please sign in to comment.