Skip to content

Commit 91e35ad

Browse files
committed
Add check for regionsQualityFlags in P2GT
1 parent 7749d0a commit 91e35ad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

L1Trigger/Phase2L1GT/plugins/L1GTSingleCollectionCut.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ namespace l1t {
9898
}
9999
if (!regionsMaxRelIsolationPt_.empty() && regionsAbsEtaLowerBounds_.size() != regionsMaxRelIsolationPt_.size()) {
100100
throw cms::Exception("Configuration")
101-
<< "\'regionsMinPt\' has " << regionsMaxRelIsolationPt_.size() << " entries, but requires "
101+
<< "\'regionsMaxRelIsolationPt\' has " << regionsMaxRelIsolationPt_.size() << " entries, but requires "
102+
<< regionsAbsEtaLowerBounds_.size() << " in " << tag_ << " .";
103+
}
104+
if (!regionsQualityFlags_.empty() && regionsAbsEtaLowerBounds_.size() != regionsQualityFlags_.size()) {
105+
throw cms::Exception("Configuration")
106+
<< "\'regionsMaxRelIsolationPt\' has " << regionsQualityFlags_.size() << " entries, but requires "
102107
<< regionsAbsEtaLowerBounds_.size() << " in " << tag_ << " .";
103108
}
104109
}

0 commit comments

Comments
 (0)