Skip to content

Commit

Permalink
fixing StubKiller logic (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
emily-tsai11 authored Oct 17, 2023
1 parent f01b055 commit afe1709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions L1Trigger/TrackFindingTracklet/src/StubKiller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ bool StubKiller::killStub(const TTStub<Ref_Phase2TrackerDigi_>* stub,
const double fractionOfStubsToKillInLayers,
const double fractionOfStubsToKillEverywhere) {
// Only kill stubs in specified layers
if (layersToKill.empty()) {
if (!layersToKill.empty()) {
// Get the layer the stub is in, and check if it's in the layer you want to kill
DetId stackDetid = stub->getDetId();
DetId geoDetId(stackDetid.rawId() + 1);
Expand Down Expand Up @@ -277,7 +277,7 @@ bool StubKiller::killStub(const TTStub<Ref_Phase2TrackerDigi_>* stub,
}

bool StubKiller::killStubInDeadModule(const TTStub<Ref_Phase2TrackerDigi_>* stub) {
if (deadModules_.empty()) {
if (!deadModules_.empty()) {
DetId stackDetid = stub->getDetId();
DetId geoDetId(stackDetid.rawId() + 1);
if (deadModules_.find(geoDetId) != deadModules_.end())
Expand Down

0 comments on commit afe1709

Please sign in to comment.