diff --git a/L1Trigger/TrackFindingTracklet/src/PurgeDuplicate.cc b/L1Trigger/TrackFindingTracklet/src/PurgeDuplicate.cc index 4108ab6add021..be4858359f9fb 100644 --- a/L1Trigger/TrackFindingTracklet/src/PurgeDuplicate.cc +++ b/L1Trigger/TrackFindingTracklet/src/PurgeDuplicate.cc @@ -207,8 +207,6 @@ void PurgeDuplicate::execute(std::vector& outputtracks_, unsigned int iSe // Count number of layers that share stubs, and the number of UR that each track hits unsigned int nShareLay = 0; - unsigned int nLayStubTrk1 = 0; - unsigned int nLayStubTrk2 = 0; if (settings_.mergeComparison() == "CompareAll") { bool layerArr[16]; for (auto& i : layerArr) { @@ -279,14 +277,6 @@ void PurgeDuplicate::execute(std::vector& outputtracks_, unsigned int iSe stubsTrk1[t1i].second == stubsTrk2[t2i].second) nShareLay++; } - // Calculate the number of layers hit by each track, so that this number can be used in calculating the number of independent - // stubs on a track (not enabled/used by default) - for (int i = 0; i < 16; i++) { - if (layStubidsTrk1[i] != -1) - nLayStubTrk1++; - if (layStubidsTrk2[i] != -1) - nLayStubTrk2++; - } } // Fill duplicate map if (nShareLay >= settings_.minIndStubs()) { // For number of shared stub merge condition