Skip to content

Commit

Permalink
Merge pull request #43014 from Jingyan95/Jack_FixIssue#41357
Browse files Browse the repository at this point in the history
Adding d0 cut to TrackletCalculatorDisplaced.cc
  • Loading branch information
cmsbuild authored and Jingyan95 committed Oct 18, 2023
1 parent 059379c commit fd64b0a
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions L1Trigger/TrackFindingTracklet/src/TrackletCalculatorDisplaced.cc
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,12 @@ bool TrackletCalculatorDisplaced::LLLSeeding(const Stub* innerFPGAStub,
}
if (std::abs(d0approx) > settings_.maxd0()) {
if (settings_.debugTracklet())
edm::LogVerbatim("Tracklet") << "Failed tracklet d0 cut " << d0approx;
edm::LogVerbatim("Tracklet") << "Failed tracklet approx d0 cut " << d0approx;
success = false;
}
if (std::abs(d0) > settings_.maxd0()) {
if (settings_.debugTracklet())
edm::LogVerbatim("Tracklet") << "Failed tracklet exact d0 cut " << d0;
success = false;
}

Expand Down Expand Up @@ -999,7 +1004,12 @@ bool TrackletCalculatorDisplaced::DDLSeeding(const Stub* innerFPGAStub,
}
if (std::abs(d0approx) > settings_.maxd0()) {
if (settings_.debugTracklet())
edm::LogVerbatim("Tracklet") << "Failed tracklet d0 cut " << d0approx;
edm::LogVerbatim("Tracklet") << "Failed tracklet approx d0 cut " << d0approx;
success = false;
}
if (std::abs(d0) > settings_.maxd0()) {
if (settings_.debugTracklet())
edm::LogVerbatim("Tracklet") << "Failed tracklet exact d0 cut " << d0;
success = false;
}

Expand Down Expand Up @@ -1395,7 +1405,12 @@ bool TrackletCalculatorDisplaced::LLDSeeding(const Stub* innerFPGAStub,
}
if (std::abs(d0approx) > settings_.maxd0()) {
if (settings_.debugTracklet())
edm::LogVerbatim("Tracklet") << "Failed tracklet d0 cut " << d0approx;
edm::LogVerbatim("Tracklet") << "Failed tracklet approx d0 cut " << d0approx;
success = false;
}
if (std::abs(d0) > settings_.maxd0()) {
if (settings_.debugTracklet())
edm::LogVerbatim("Tracklet") << "Failed tracklet exact d0 cut " << d0;
success = false;
}

Expand Down

0 comments on commit fd64b0a

Please sign in to comment.