Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTD reconstruction: replace specific forward layer with the general mother class #35062

Merged
merged 1 commit into from Aug 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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