Skip to content

Commit

Permalink
Merge pull request #35062 from fabiocos/fc-fixubsan0821
Browse files Browse the repository at this point in the history
MTD reconstruction: replace specific forward layer with the general mother class
  • Loading branch information
cmsbuild committed Aug 29, 2021
2 parents bae7bdc + 2ebda5c commit 2ab544d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions RecoMTD/TrackExtender/plugins/TrackExtenderWithMTD.cc
Expand Up @@ -16,9 +16,7 @@
#include "DataFormats/TrackerRecHit2D/interface/MTDTrackingRecHit.h"

#include "RecoMTD/DetLayers/interface/MTDTrayBarrelLayer.h"
#include "RecoMTD/DetLayers/interface/MTDDetTray.h"
#include "RecoMTD/DetLayers/interface/MTDRingForwardDoubleLayer.h"
#include "RecoMTD/DetLayers/interface/MTDDetRing.h"
#include "TrackingTools/DetLayers/interface/ForwardDetLayer.h"

#include "DataFormats/ForwardDetId/interface/BTLDetId.h"
#include "DataFormats/ForwardDetId/interface/ETLDetId.h"
Expand Down Expand Up @@ -886,7 +884,7 @@ TransientTrackingRecHit::ConstRecHitContainer TrackExtenderWithMTDT<TrackCollect
TransientTrackingRecHit::ConstRecHitContainer output;
bestHit = MTDHitMatchingInfo();
for (const DetLayer* ilay : layers) {
const BoundDisk& disk = static_cast<const MTDRingForwardDoubleLayer*>(ilay)->specificSurface();
const BoundDisk& disk = static_cast<const ForwardDetLayer*>(ilay)->specificSurface();
const double diskZ = disk.position().z();

if (tsos.globalPosition().z() * diskZ < 0)
Expand Down

0 comments on commit 2ab544d

Please sign in to comment.