Skip to content

Commit 6fc759d

Browse files
author
Benjamin Huber
committed
Validate that regionsAbsEtaLowerBounds is sorted
1 parent 81afad4 commit 6fc759d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

L1Trigger/Phase2L1GT/plugins/L1GTSingleCollectionCut.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ namespace l1t {
9191
minPtMultiplicityN_(config.getParameter<unsigned int>("minPtMultiplicityN")),
9292
minPtMultiplicityCut_(getOptionalParam<int, double>(
9393
"minPtMultiplicityCut", config, [&scales](double value) { return scales.to_hw_pT_floor(value); })) {
94+
if (!std::is_sorted(regionsAbsEtaLowerBounds_.begin(), regionsAbsEtaLowerBounds_.end())) {
95+
throw cms::Exception("Configuration") << "\'regionsAbsEtaLowerBounds\' is not sorted.";
96+
}
9497
if (!regionsMinPt_.empty() && regionsAbsEtaLowerBounds_.size() != regionsMinPt_.size()) {
9598
throw cms::Exception("Configuration")
9699
<< "\'regionsMinPt\' has " << regionsMinPt_.size() << " entries, but requires "

0 commit comments

Comments
 (0)