From 4081216f015e38f8504a269477067b536a98675c Mon Sep 17 00:00:00 2001 From: Abhijith Gandrakota Date: Thu, 2 Jul 2020 14:59:26 -0400 Subject: [PATCH] Bug Fix in Stub.cc There is a problem with the rapprox implementation. Values for Stub->rapprox(); and Stub->r(); are 70cms apart for Disk 2S. The bug fix above will prevent this from happening. --- L1Trigger/TrackFindingTracklet/src/Stub.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/L1Trigger/TrackFindingTracklet/src/Stub.cc b/L1Trigger/TrackFindingTracklet/src/Stub.cc index 6fa8dc5b85753..a6ca684cc7151 100644 --- a/L1Trigger/TrackFindingTracklet/src/Stub.cc +++ b/L1Trigger/TrackFindingTracklet/src/Stub.cc @@ -211,6 +211,12 @@ double Stub::rapprox() const { int lr = 1 << (8 - settings_.nrbitsstub(layer_.value())); return r_.value() * settings_.kr() * lr + settings_.rmean(layer_.value()); } + if( !l1tstub_->isPSmodule()){ + if(abs(disk_.value())<=2) + return settings_.rDSSinner(r_.value()); + else + return settings_.rDSSouter(r_.value()); + } return r_.value() * settings_.kr(); }