Skip to content

Commit

Permalink
Merge pull request #47204 from artlbv/fixP2GT_etaregions
Browse files Browse the repository at this point in the history
L1 P2GT region cut checks and fixing menu config
  • Loading branch information
cmsbuild authored Feb 5, 2025
2 parents a287591 + 7e19b53 commit d8f5228
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
primVertex = cms.uint32(0), # primary vertex index (choose 0)
),
collection2 = l1tGTsc4Jet.clone(
regionsMinPt=cms.vdouble(25,25), #safety cut
minPt = cms.double(25) #safety cut
),
collection3 = l1tGTsc4Jet.clone(
regionsMinPt=cms.vdouble(25,25), #safety cut
minPt = cms.double(25) #safety cut
),
collection4 = l1tGTsc4Jet.clone(
regionsMinPt=cms.vdouble(25,25), #safety cut
minPt = cms.double(25) #safety cut
),
correl12 = cms.PSet(
maxDR = cms.double(0.4),
Expand Down Expand Up @@ -169,7 +169,7 @@
primVertex = cms.uint32(0), # primary vertex index (choose 0)
),
collection2 = l1tGTsc4Jet.clone(
regionsMinPt=cms.vdouble(25,25), #safety cut
minPt = cms.double(25) #safety cut
),
minDR = cms.double(0.3)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,21 @@
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds = get_object_etalowbounds("CL2JetsSC4"),
regionsMinPt=cms.vdouble(25,25), #safety cut
minPt = cms.double(25) #safety cut
),
collection3 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "CL2JetsSC4"),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds = get_object_etalowbounds("CL2JetsSC4"),
regionsMinPt=cms.vdouble(25,25), #safety cut
minPt = cms.double(25) #safety cut
),
collection4 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "CL2JetsSC4"),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds = get_object_etalowbounds("CL2JetsSC4"),
regionsMinPt=cms.vdouble(25,25), #safety cut
minPt = cms.double(25) #safety cut
),
correl12 = cms.PSet(
maxDR = cms.double(0.4),
Expand Down Expand Up @@ -247,7 +247,7 @@
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds = get_object_etalowbounds("CL2JetsSC4"),
regionsMinPt=cms.vdouble(25,25), #safety cut
minPt = cms.double(25) #safety cut
),
minDR = cms.double(0.3)
)
Expand All @@ -262,7 +262,7 @@
tag = cms.InputTag("l1tGTProducer", "CL2Taus"),
minEta = cms.double(-2.172),
maxEta = cms.double(2.172),
regionsAbsEtaLowerBounds = get_object_etalowbounds("CL2JetsSC4"),
regionsAbsEtaLowerBounds = get_object_etalowbounds("CL2Taus"),
regionsMinPt = get_object_thrs(55, "CL2Taus","default"),
minQualityScore = get_object_ids("CL2Taus","default")
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,15 @@
tag = cms.InputTag("l1tGTProducer", "CL2Taus"),
minEta = cms.double(-2.172),
maxEta = cms.double(2.172),
regionsAbsEtaLowerBounds = get_object_etalowbounds("CL2JetsSC4"),
regionsAbsEtaLowerBounds = get_object_etalowbounds("CL2Taus"),
regionsMinPt = get_object_thrs(52, "CL2Taus","default"),
minQualityScore = get_object_ids("CL2Taus","default")
),
collection2 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "CL2Taus"),
minEta = cms.double(-2.172),
maxEta = cms.double(2.172),
regionsAbsEtaLowerBounds = get_object_etalowbounds("CL2JetsSC4"),
regionsAbsEtaLowerBounds = get_object_etalowbounds("CL2Taus"),
regionsMinPt = get_object_thrs(52, "CL2Taus","default"),
minQualityScore = get_object_ids("CL2Taus","default")
),
Expand Down
18 changes: 17 additions & 1 deletion L1Trigger/Phase2L1GT/plugins/L1GTSingleCollectionCut.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,23 @@ namespace l1t {
primVertex_(getOptionalParam<unsigned int>("primVertex", config)),
minPtMultiplicityN_(config.getParameter<unsigned int>("minPtMultiplicityN")),
minPtMultiplicityCut_(getOptionalParam<int, double>(
"minPtMultiplicityCut", config, [&scales](double value) { return scales.to_hw_pT_floor(value); })) {}
"minPtMultiplicityCut", config, [&scales](double value) { return scales.to_hw_pT_floor(value); })) {
if (!regionsMinPt_.empty() && regionsAbsEtaLowerBounds_.size() != regionsMinPt_.size()) {
throw cms::Exception("Configuration")
<< "\'regionsMinPt\' has " << regionsMinPt_.size() << " entries, but requires "
<< regionsAbsEtaLowerBounds_.size() << " in " << tag_ << " .";
}
if (!regionsMaxRelIsolationPt_.empty() && regionsAbsEtaLowerBounds_.size() != regionsMaxRelIsolationPt_.size()) {
throw cms::Exception("Configuration")
<< "\'regionsMaxRelIsolationPt\' has " << regionsMaxRelIsolationPt_.size() << " entries, but requires "
<< regionsAbsEtaLowerBounds_.size() << " in " << tag_ << " .";
}
if (!regionsQualityFlags_.empty() && regionsAbsEtaLowerBounds_.size() != regionsQualityFlags_.size()) {
throw cms::Exception("Configuration")
<< "\'regionsQualityFlags\' has " << regionsQualityFlags_.size() << " entries, but requires "
<< regionsAbsEtaLowerBounds_.size() << " in " << tag_ << " .";
}
}

bool checkObject(const P2GTCandidate& obj) const {
bool result = true;
Expand Down

0 comments on commit d8f5228

Please sign in to comment.