Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Phase-2 L1] Incorporate object threshold scalings, ID and isolation via dictionaries into the P2GT menu #46489

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
30 changes: 16 additions & 14 deletions L1Trigger/Phase2L1GT/python/l1tGTMenu_BTagSeeds_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,20 @@

from L1Trigger.Phase2L1GT.l1tGTAlgoBlockProducer_cff import algorithms

from L1Trigger.Phase2L1GT.menuConstants import *

DoubleTkMuonOSEr1p5Dr1p4 = l1tGTDoubleObjectCond.clone(
collection1 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minEta = cms.double(-1.5),
maxEta = cms.double(1.5),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection2 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minEta = cms.double(-1.5),
maxEta = cms.double(1.5),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
minDR = cms.double(0),
maxDR =cms.double(1.4),
Expand All @@ -43,15 +45,15 @@
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,0.83,1.24),
regionsMinPt=cms.vdouble(4,4,4),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection2 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,0.83,1.24),
regionsMinPt=cms.vdouble(4,4,4),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
minDR = cms.double(0),
maxDR =cms.double(1.2),
Expand All @@ -68,15 +70,15 @@
maxEta = cms.double(2.0),
regionsAbsEtaLowerBounds=cms.vdouble(0,0.83,1.24),
regionsMinPt=cms.vdouble(4,4,4),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection2 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minEta = cms.double(-2.0),
maxEta = cms.double(2.0),
regionsAbsEtaLowerBounds=cms.vdouble(0,0.83,1.24),
regionsMinPt=cms.vdouble(4,4,4),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
minDR = cms.double(0),
minInvMass = cms.double(7),
Expand All @@ -93,21 +95,21 @@
minPt = cms.double(5),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection2 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minPt = cms.double(3),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection3 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minPt = cms.double(0),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
correl12 = cms.PSet(
minDR = cms.double(0),
Expand All @@ -124,29 +126,29 @@
)
)
TripleTkMuon_5_3_0_DoubleTkMuon_5_3_OS_MassTo9 = cms.Path(TripleTkMuon530OSMassMax9)
algorithms.append(cms.PSet(expression = cms.string("TripleTkMuon_5_3_0_DoubleTkMuon_5_3_OS_MassTo9")))
algorithms.append(cms.PSet(expression = cms.string("pTripleTkMuon_5_3_0_DoubleTkMuon_5_3_OS_MassTo9")))

TripleTkMuon53p52p5OSMass5to17 = l1tGTTripleObjectCond.clone(
collection1 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minPt = cms.double(5),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection2 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minPt = cms.double(4),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection3 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minPt = cms.double(2),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
qualityFlags = cms.uint32(0b0001)
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
correl12 = cms.PSet(
minDR = cms.double(0),
Expand All @@ -164,4 +166,4 @@
)
)
TripleTkMuon_5_3p5_2p5_OS_Mass5to17 = cms.Path(TripleTkMuon53p52p5OSMass5to17)
algorithms.append(cms.PSet(expression = cms.string("TripleTkMuon_5_3p5_2p5_OS_Mass5to17")))
algorithms.append(cms.PSet(expression = cms.string("pTripleTkMuon_5_3p5_2p5_OS_Mass5to17")))
59 changes: 32 additions & 27 deletions L1Trigger/Phase2L1GT/python/l1tGTMenu_crossLepSeeds_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,24 @@

from L1Trigger.Phase2L1GT.l1tGTAlgoBlockProducer_cff import algorithms

from L1Trigger.Phase2L1GT.menuConstants import *

TkMuonTkIsoEle720 = l1tGTDoubleObjectCond.clone(
collection1 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,0.83,1.24),
regionsMinPt=cms.vdouble(7,7,7),
qualityFlags = cms.uint32(0b0001),
regionsMinPt=cms.vdouble(7,7,7), # no scaling used below 8 GeV
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection2 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "CL2Electrons"),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,1.479),
regionsMinPt=cms.vdouble(16,15), #no qualities in the endcap as online below 25
regionsMaxRelIsolationPt = cms.vdouble(0.13,0.28)
regionsMinPt = getObjectThrs(20, "L1tkElectron","Iso"),
regionsMaxRelIsolationPt = getObjectISOs("L1tkElectron","Iso"),
),
maxDz = cms.double(1),
)
Expand All @@ -43,16 +45,16 @@
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,0.83,1.24),
regionsMinPt=cms.vdouble(7,7,7),
qualityFlags = cms.uint32(0b0001),
regionsMinPt=cms.vdouble(7,7,7), # no scaling used below 8 GeV
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection2 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "CL2Electrons"),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,1.479),
regionsQualityFlags=cms.vuint32(0b0010,0b0000),
regionsMinPt=cms.vdouble(19,18),
regionsMinPt = getObjectThrs(23, "L1tkElectron","NoIso"),
regionsQualityFlags = getObjectIDs("L1tkElectron","NoIso"),
),
maxDz = cms.double(1),
)
Expand All @@ -65,15 +67,16 @@
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,1.479),
regionsMinPt=cms.vdouble(7,7),
regionsQualityFlags=cms.vuint32(0b0010,0b0000),
regionsMinPt = getObjectThrs(36, "L1tkElectron","NoIso"),
regionsQualityFlags = getObjectIDs("L1tkElectron","NoIso"),
),
collection2 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,0.83,1.24),
regionsMinPt=cms.vdouble(18,18,18),
regionsMinPt = getObjectThrs(20, "L1gmtTkMuon","VLoose"),
qualityFlags = getObjectIDs("L1gmtTkMuon","VLoose"),
),
maxDz = cms.double(1),
)
Expand All @@ -87,23 +90,23 @@
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,0.83,1.24),
regionsMinPt=cms.vdouble(6,6,6),
qualityFlags = cms.uint32(0b0001),
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection2 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "CL2Electrons"),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,1.479),
regionsMinPt=cms.vdouble(13,13),
regionsQualityFlags=cms.vuint32(0b0010,0b0000),
regionsMinPt = getObjectThrs(17, "L1tkElectron","NoIso"),
regionsQualityFlags = getObjectIDs("L1tkElectron","NoIsoLowPt"),
),
collection3 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "CL2Electrons"),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,1.479),
regionsMinPt=cms.vdouble(13,13),
regionsQualityFlags=cms.vuint32(0b0010,0b0000),
regionsMinPt = getObjectThrs(17, "L1tkElectron","NoIso"),
regionsQualityFlags = getObjectIDs("L1tkElectron","NoIsoLowPt"),
),
correl12 = cms.PSet(
maxDz = cms.double(1)
Expand All @@ -122,23 +125,24 @@
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,0.83,1.24),
regionsMinPt=cms.vdouble(5,5,5),
qualityFlags = cms.uint32(0b0001),
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection2 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "GMTTkMuons"),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,0.83,1.24),
regionsMinPt=cms.vdouble(5,5,5),
qualityFlags = cms.uint32(0b0001),
qualityFlags = getObjectIDs("L1gmtTkMuon","Loose"),
),
collection3 = cms.PSet(
tag = cms.InputTag("l1tGTProducer", "CL2Electrons"),
minEta = cms.double(-2.4),
maxEta = cms.double(2.4),
regionsAbsEtaLowerBounds=cms.vdouble(0,1.479),
regionsMinPt=cms.vdouble(7,6),
regionsQualityFlags=cms.vuint32(0b0010,0b0000),
regionsMinPt = getObjectThrs(9, "L1tkElectron","NoIso"),
regionsQualityFlags = getObjectIDs("L1tkElectron","NoIsoLowPt"),

),
correl12 = cms.PSet(
minDR = cms.double(0),
Expand All @@ -157,7 +161,8 @@
minEta = cms.double(-2.1),
maxEta = cms.double(2.1),
regionsAbsEtaLowerBounds=cms.vdouble(0,0.83,1.24),
regionsMinPt=cms.vdouble(16,16,16),
regionsMinPt = getObjectThrs(18, "L1gmtTkMuon","VLoose"),
qualityFlags = getObjectIDs("L1gmtTkMuon","VLoose"),
maxPrimVertDz = cms.double(1), # in cm
primVertex = cms.uint32(0) # primary vertex index (choose 0)
),
Expand All @@ -166,8 +171,8 @@
minEta = cms.double(-2.172),
maxEta = cms.double(2.172),
regionsAbsEtaLowerBounds=cms.vdouble(0,1.5),
regionsMinPt=cms.vdouble(23,14),
minQualityScore = cms.uint32(225),
regionsMinPt = getObjectThrs(42, "L1nnPuppiTau","default"),
minQualityScore = getObjectIDs("L1nnPuppiTau","default")
),
)
pPuppiTauTkMuon42_18 = cms.Path(PuppiTauTkMuon4218)
Expand All @@ -179,8 +184,8 @@
minEta = cms.double(-2.1),
maxEta = cms.double(2.1),
regionsAbsEtaLowerBounds=cms.vdouble(0,1.479),
regionsMinPt=cms.vdouble(18,17),
regionsMaxRelIsolationPt = cms.vdouble(0.13,0.28),
regionsMinPt = getObjectThrs(22, "L1tkElectron","Iso"),
regionsMaxRelIsolationPt = getObjectISOs("L1tkElectron","Iso"),
maxPrimVertDz = cms.double(1), # in cm
primVertex = cms.uint32(0) # primary vertex index (choose 0)
),
Expand All @@ -189,8 +194,8 @@
minEta = cms.double(-2.172),
maxEta = cms.double(2.172),
regionsAbsEtaLowerBounds=cms.vdouble(0,1.5),
regionsMinPt=cms.vdouble(25,16),
minQualityScore = cms.uint32(225),
regionsMinPt = getObjectThrs(45, "L1nnPuppiTau","default"),
minQualityScore = getObjectIDs("L1nnPuppiTau","default")
),
)
pPuppiTauTkIsoEle45_22 = cms.Path(PuppiTauTkIsoEle4522)
Expand Down
Loading