diff --git a/L1Trigger/TrackFindingTracklet/interface/Settings.h b/L1Trigger/TrackFindingTracklet/interface/Settings.h index 77be4324041f9..73c424128f48c 100644 --- a/L1Trigger/TrackFindingTracklet/interface/Settings.h +++ b/L1Trigger/TrackFindingTracklet/interface/Settings.h @@ -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 diff --git a/L1Trigger/TrackFindingTracklet/src/TrackletProcessorDisplaced.cc b/L1Trigger/TrackFindingTracklet/src/TrackletProcessorDisplaced.cc index 37dd2a5a3f20f..ec1243a8b4528 100644 --- a/L1Trigger/TrackFindingTracklet/src/TrackletProcessorDisplaced.cc +++ b/L1Trigger/TrackFindingTracklet/src/TrackletProcessorDisplaced.cc @@ -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) { @@ -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) { @@ -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")) {