The UBSAN build is showing the following errors: [2 FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc:151:40: runtime error: downcast of address 0x149590badd00 which does not point to an object of type 'GluedGeomDet'](https://cmssdt.cern.ch/SDT/jenkins-artifacts/ubsan_logs/CMSSW_16_1_X_2026-04-03-2300/logs/c0/c0edb8580971e516aa0109e3de3fa746/log) [2 FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc:202:50: runtime error: member call on address 0x149590d990f0 which does not point to an object of type 'GluedGeomDet'](https://cmssdt.cern.ch/SDT/jenkins-artifacts/ubsan_logs/CMSSW_16_1_X_2026-04-03-2300/logs/d1/d1154a4bdab8deb4f8a894b890d0ff53/log) [2 FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc:233:34: runtime error: member call on address 0x1495905b8fa0 which does not point to an object of type 'StripTopology'](https://cmssdt.cern.ch/SDT/jenkins-artifacts/ubsan_logs/CMSSW_16_1_X_2026-04-03-2300/logs/30/30158974d613ada153004e1a9f978f9d/log) [2 FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc:274:34: runtime error: member call on address 0x14959059cb60 which does not point to an object of type 'StripTopology'](https://cmssdt.cern.ch/SDT/jenkins-artifacts/ubsan_logs/CMSSW_16_1_X_2026-04-03-2300/logs/1c/1cc8c0242570f7891dceb4be8be02cd7/log) [2 FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc:338:54: runtime error: member call on address 0x149590bbfef0 which does not point to an object of type 'GluedGeomDet'](https://cmssdt.cern.ch/SDT/jenkins-artifacts/ubsan_logs/CMSSW_16_1_X_2026-04-03-2300/logs/cb/cb2d3b4e754e14d0a12ca1959fa899d6/log) looking at some of these shows that they can all be traced back to C style casts https://github.com/cms-sw/cmssw/blob/2e9613c972a4ce77ad26014991f0efbfe392ebdd/FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc#L151 https://github.com/cms-sw/cmssw/blob/2e9613c972a4ce77ad26014991f0efbfe392ebdd/FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc#L204 https://github.com/cms-sw/cmssw/blob/2e9613c972a4ce77ad26014991f0efbfe392ebdd/FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc#L226 Where the one for line 151 being the most problematic (as the others are calls applied to the object after the cast).
The UBSAN build is showing the following errors:
2 FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc:151:40: runtime error: downcast of address 0x149590badd00 which does not point to an object of type 'GluedGeomDet'
2 FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc:202:50: runtime error: member call on address 0x149590d990f0 which does not point to an object of type 'GluedGeomDet'
2 FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc:233:34: runtime error: member call on address 0x1495905b8fa0 which does not point to an object of type 'StripTopology'
2 FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc:274:34: runtime error: member call on address 0x14959059cb60 which does not point to an object of type 'StripTopology'
2 FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc:338:54: runtime error: member call on address 0x149590bbfef0 which does not point to an object of type 'GluedGeomDet'
looking at some of these shows that they can all be traced back to C style casts
cmssw/FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc
Line 151 in 2e9613c
cmssw/FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc
Line 204 in 2e9613c
cmssw/FastSimulation/TrackingRecHitProducer/plugins/FastTrackerRecHitMatcher.cc
Line 226 in 2e9613c
Where the one for line 151 being the most problematic (as the others are calls applied to the object after the cast).