Skip to content

Commit

Permalink
fix getPhiRes function (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarafiorendi committed Oct 18, 2021
1 parent 57340a6 commit f4bc4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion L1Trigger/TrackFindingTracklet/src/PurgeDuplicate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ double PurgeDuplicate::getPhiRes(Tracklet* curTracklet, const Stub* curStub) {
// Get phi projection of tracklet
int seedindex = curTracklet->seedIndex();
// If this stub is a seed stub, set projection=phi, so that res=0
if ((seedindex == 0 && (Layer == 1 || Layer == 2)) || (seedindex == 1 && (Layer == 2 || abs(Disk) == 0)) ||
if ((seedindex == 0 && (Layer == 1 || Layer == 2)) || (seedindex == 1 && (Layer == 2 || Layer == 3)) ||
(seedindex == 2 && (Layer == 3 || Layer == 4)) || (seedindex == 3 && (Layer == 5 || Layer == 6)) ||
(seedindex == 4 && (abs(Disk) == 1 || abs(Disk) == 2)) ||
(seedindex == 5 && (abs(Disk) == 3 || abs(Disk) == 4)) || (seedindex == 6 && (Layer == 1 || abs(Disk) == 1)) ||
Expand Down

0 comments on commit f4bc4a9

Please sign in to comment.