1 import FWCore.ParameterSet.Config
as cms
3 from L1Trigger.Phase2L1ParticleFlow.l1tDeregionizerProducer_cfi
import l1tDeregionizerProducer
as l1tLayer2Deregionizer
5 l1tLayer2EG = cms.EDProducer(
9 pfProducer=cms.InputTag(
"l1tLayer1HGCal",
'L1TkElePerBoard'),
10 regions=cms.vint32(3, 4)
13 pfProducer=cms.InputTag(
"l1tLayer1Barrel",
'L1TkElePerBoard'),
14 regions=cms.vint32(0, 1, 2)
19 pfProducer=cms.InputTag(
"l1tLayer1HGCal",
'L1TkEmPerBoard'),
20 regions=cms.vint32(3, 4)
23 pfProducer=cms.InputTag(
"l1tLayer1HGCalNoTK",
'L1TkEmPerBoard'),
24 regions=cms.vint32(-1)
27 pfProducer=cms.InputTag(
"l1tLayer1Barrel",
'L1TkEmPerBoard'),
28 regions=cms.vint32(0, 1, 2)
33 pfProducer=cms.InputTag(
"l1tLayer1HGCal",
'L1Eg'),
34 regions=cms.vint32(-1)
37 pfProducer=cms.InputTag(
"l1tLayer1HGCalNoTK",
'L1Eg'),
38 regions=cms.vint32(-1)
41 l1PFObjects = cms.InputTag(
"l1tLayer2Deregionizer",
"Puppi"),
42 egStaInstanceLabel=cms.string(
"L1CtEgEE"),
43 tkEmInstanceLabel=cms.string(
"L1CtTkEm"),
44 tkEleInstanceLabel=cms.string(
"L1CtTkElectron"),
46 nREGIONS=cms.uint32(5),
47 nEGPerRegion=cms.uint32(16),
48 nEGOut=cms.uint32(12),
49 debug=cms.untracked.uint32(0),
52 nTKELE_OUT=cms.uint32(12),
53 nTKPHO_OUT=cms.uint32(12),
55 puppiIsoParametersTkEm = cms.PSet(
56 pfIsoType = cms.string(
"PUPPI"),
57 pfPtMin = cms.double(1.),
59 dRMin = cms.double(0.07),
60 dRMax = cms.double(0.3),
61 pfCandReuse = cms.bool(
True)
63 puppiIsoParametersTkEle = cms.PSet(
64 pfIsoType = cms.string(
"PUPPI"),
65 pfPtMin = cms.double(1.),
67 dRMin = cms.double(0.03),
68 dRMax = cms.double(0.2),
69 pfCandReuse = cms.bool(
True)
71 writeInPattern=cms.bool(
False),
72 writeOutPattern=cms.bool(
False),
73 inPatternFile=cms.PSet(
74 nFramesPerBX=cms.uint32(9),
75 format=cms.string(
"EMPv2"),
76 outputFilename=cms.string(
"L1TCTL2EG_InPattern"),
77 outputFileExtension=cms.string(
"txt.gz"),
79 maxLinesPerFile=cms.uint32(1024),
80 eventsPerFile=cms.uint32(12),
84 nWords=cms.uint32(48),
85 interface=cms.string(
"eglayer1Barrel"),
87 channels=cms.vuint32(0)
91 nWords=cms.uint32(48),
92 interface=cms.string(
"eglayer1Barrel"),
94 channels=cms.vuint32(1)
98 nWords=cms.uint32(48),
99 interface=cms.string(
"eglayer1Barrel"),
101 channels=cms.vuint32(2)
105 nWords=cms.uint32(48),
106 interface=cms.string(
"eglayer1Endcap"),
108 channels=cms.vuint32(3)
112 nWords=cms.uint32(48),
113 interface=cms.string(
"eglayer1Endcap"),
115 channels=cms.vuint32(4)
120 outPatternFile=cms.PSet(
121 nFramesPerBX=cms.uint32(9),
122 format=cms.string(
"EMPv2"),
123 outputFilename=cms.string(
"L1TCTL2EG_OutPattern"),
124 outputFileExtension=cms.string(
"txt.gz"),
126 maxLinesPerFile=cms.uint32(1024),
127 eventsPerFile=cms.uint32(12),
131 nWords=cms.uint32(36),
132 interface=cms.string(
"eglayer2"),
134 channels=cms.vuint32(0)
158 l1tLayer2EGElliptic = l1tLayer2EG.clone(
159 tkElectrons=cms.VPSet(
161 pfProducer=cms.InputTag(
"l1tLayer1HGCalElliptic",
'L1TkElePerBoard'),
162 regions=cms.vint32(3, 4)
165 pfProducer=cms.InputTag(
"l1tLayer1Barrel",
'L1TkElePerBoard'),
166 regions=cms.vint32(0, 1, 2)
171 pfProducer=cms.InputTag(
"l1tLayer1HGCalElliptic",
'L1TkEmPerBoard'),
172 regions=cms.vint32(3, 4)
175 pfProducer=cms.InputTag(
"l1tLayer1HGCalNoTK",
'L1TkEmPerBoard'),
176 regions=cms.vint32(-1)
179 pfProducer=cms.InputTag(
"l1tLayer1Barrel",
'L1TkEmPerBoard'),
180 regions=cms.vint32(0, 1, 2)
185 pfProducer=cms.InputTag(
"l1tLayer1HGCalElliptic",
'L1Eg'),
186 regions=cms.vint32(-1)
189 pfProducer=cms.InputTag(
"l1tLayer1HGCalNoTK",
'L1Eg'),
190 regions=cms.vint32(-1)
196 l1tLayer2EGTM18 = l1tLayer2EG.clone(
197 tkElectrons=cms.VPSet(
199 pfProducer=cms.InputTag(
"l1tLayer1HGCalTM18",
'L1TkElePerBoard'),
200 regions=cms.vint32(3, 4)
203 pfProducer=cms.InputTag(
"l1tLayer1BarrelSerenityTM18",
'L1TkElePerBoard'),
204 regions=cms.vint32(0, 1, 2)
209 pfProducer=cms.InputTag(
"l1tLayer1HGCalTM18",
'L1TkEmPerBoard'),
210 regions=cms.vint32(3, 4)
213 pfProducer=cms.InputTag(
"l1tLayer1HGCalNoTKTM18",
'L1TkEmPerBoard'),
214 regions=cms.vint32(-1)
217 pfProducer=cms.InputTag(
"l1tLayer1BarrelSerenityTM18",
'L1TkEmPerBoard'),
218 regions=cms.vint32(0, 1, 2)
223 pfProducer=cms.InputTag(
"l1tLayer1HGCalTM18",
'L1Eg'),
224 regions=cms.vint32(-1)
227 pfProducer=cms.InputTag(
"l1tLayer1HGCalNoTKTM18",
'L1Eg'),
228 regions=cms.vint32(-1)
233 l1tLayer2EGTM18.inPatternFile.outputFilename =
"L1TCTL2EG_TMUX18_InPattern" 234 l1tLayer2EGTM18.inPatternFile.channels = cms.VPSet(
237 nWords=cms.uint32(156),
238 interface=cms.string(
"eglayer1Barrel"),
240 channels=cms.vuint32(0,2,4)
244 nWords=cms.uint32(129),
245 interface=cms.string(
"eglayer1Endcap"),
247 channels=cms.vuint32(1,3,5)
250 l1tLayer2EGTM18.outPatternFile.outputFilename =
'L1TCTL2EG_TMUX18_OutPattern' 255 L1TLayer2EGTask = cms.Task(
256 l1tLayer2Deregionizer,