Skip to content

Commit

Permalink
Add truncation in TrackletProcessorDisplaced (#293)
Browse files Browse the repository at this point in the history
* include truncation in TrackletProcessorDisplaced

* code formatting

* include separate truncation for TP and TPD
  • Loading branch information
cgsavard authored and tomalin committed Oct 11, 2024
1 parent 044a068 commit 4ee2d78
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions L1Trigger/TrackFindingTracklet/interface/Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ namespace trklet {
{"TB", 108},
{"MP", 108},
{"TP", 108},
{"TPD", 108},
{"TRE", 108},
{"DR", 108}}; //Specifies how many tracks allowed per bin in DR

Expand Down
40 changes: 40 additions & 0 deletions L1Trigger/TrackFindingTracklet/src/TrackletProcessorDisplaced.cc
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,24 @@ void TrackletProcessorDisplaced::execute(unsigned int iSector, double phimin, do
if (settings_.debugTracklet()) {
edm::LogVerbatim("Tracklet") << "TrackletCalculatorDisplaced execute done";
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}

} else if (layer1_ == 2 && layer2_ == 3) {
Expand Down Expand Up @@ -540,12 +552,24 @@ void TrackletProcessorDisplaced::execute(unsigned int iSector, double phimin, do
if (settings_.debugTracklet()) {
edm::LogVerbatim("Tracklet") << "TrackletCalculatorDisplaced execute done";
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}

} else if (disk1_ == 1 && disk2_ == 2) {
Expand Down Expand Up @@ -654,15 +678,31 @@ void TrackletProcessorDisplaced::execute(unsigned int iSector, double phimin, do
if (settings_.debugTracklet()) {
edm::LogVerbatim("Tracklet") << "TrackletCalculatorDisplaced execute done";
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}
}
if (countall >= settings_.maxStep("TPD"))
break;
}
if (countall >= settings_.maxStep("TPD"))
break;
}

if (settings_.writeMonitorData("TPD")) {
Expand Down

0 comments on commit 4ee2d78

Please sign in to comment.