Skip to content

Commit

Permalink
Bug Fix in Stub.cc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gabhijith authored Jul 2, 2020
1 parent 9b39f68 commit 4081216
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions L1Trigger/TrackFindingTracklet/src/Stub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 4081216

Please sign in to comment.