Skip to content

Commit

Permalink
Removed unused lines of code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalin committed Jun 13, 2023
1 parent dd84d9d commit 9f23b96
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions L1Trigger/TrackFindingTracklet/src/PurgeDuplicate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ void PurgeDuplicate::execute(std::vector<Track>& 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) {
Expand Down Expand Up @@ -279,14 +277,6 @@ void PurgeDuplicate::execute(std::vector<Track>& 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
Expand Down

0 comments on commit 9f23b96

Please sign in to comment.