Skip to content

Commit

Permalink
In case of a tie in cancel out between TF sectors the lower sector mu…
Browse files Browse the repository at this point in the history
…on wins
  • Loading branch information
thomreis committed Mar 3, 2016
1 parent a56b78b commit 68937c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions L1Trigger/L1TMuon/src/MicroGMTCancelOutUnit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ MicroGMTCancelOutUnit::setCancelOutBits(GMTInternalWedges& wedges, tftype trackF
coll2.push_back(mu);
}
if (mode == cancelmode::coordinate) {
getCoordinateCancelBits(coll1, coll2);
getCoordinateCancelBits(coll2, coll1); // in case of a tie coll1 muon wins
} else {
getTrackAddrCancelBits(coll1, coll2);
}
Expand Down Expand Up @@ -255,7 +255,7 @@ MicroGMTCancelOutUnit::getTrackAddrCancelBits(std::vector<std::shared_ptr<GMTInt
}
//std::cout << "Shared hits found: " << nMatchedStations << std::endl;
if (nMatchedStations > 0) {
if ((*mu_w1)->origin().hwQual() > (*mu_w2)->origin().hwQual()) {
if ((*mu_w1)->origin().hwQual() >= (*mu_w2)->origin().hwQual()) {
(*mu_w2)->setHwCancelBit(1);
} else {
(*mu_w1)->setHwCancelBit(1);
Expand Down

0 comments on commit 68937c6

Please sign in to comment.