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 channels=cms.vint32(3, 4)
13 pfProducer=cms.InputTag(
"l1tLayer1Barrel",
'L1TkElePerBoard'),
14 channels=cms.vint32(0, 1, 2)
19 pfProducer=cms.InputTag(
"l1tLayer1HGCal",
'L1TkEmPerBoard'),
20 channels=cms.vint32(3, 4)
23 pfProducer=cms.InputTag(
"l1tLayer1HGCalNoTK",
'L1TkEmPerBoard'),
24 channels=cms.vint32(-1)
27 pfProducer=cms.InputTag(
"l1tLayer1Barrel",
'L1TkEmPerBoard'),
28 channels=cms.vint32(0, 1, 2)
33 pfProducer=cms.InputTag(
"l1tLayer1HGCal",
'L1Eg'),
34 channels=cms.vint32(-1)
37 pfProducer=cms.InputTag(
"l1tLayer1HGCalNoTK",
'L1Eg'),
38 channels=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 nBOARDS=cms.uint32(5),
47 nEGPerBoard=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),
83 nWords=cms.uint32(48),
84 interface=cms.string(
"eglayer1"),
86 channels=cms.vuint32(0)
90 nWords=cms.uint32(48),
91 interface=cms.string(
"eglayer1"),
93 channels=cms.vuint32(1)
97 nWords=cms.uint32(48),
98 interface=cms.string(
"eglayer1"),
100 channels=cms.vuint32(2)
104 nWords=cms.uint32(48),
105 interface=cms.string(
"eglayer1"),
107 channels=cms.vuint32(3)
111 nWords=cms.uint32(48),
112 interface=cms.string(
"eglayer1"),
114 channels=cms.vuint32(4)
119 outPatternFile=cms.PSet(
120 nFramesPerBX=cms.uint32(9),
121 format=cms.string(
"EMPv2"),
122 outputFilename=cms.string(
"L1TCTL2EG_OutPattern"),
123 outputFileExtension=cms.string(
"txt.gz"),
125 maxLinesPerFile=cms.uint32(1024),
129 nWords=cms.uint32(36),
130 interface=cms.string(
"eglayer2"),
132 channels=cms.vuint32(0)
156 l1tLayer2EGElliptic = l1tLayer2EG.clone(
157 tkElectrons=cms.VPSet(
159 pfProducer=cms.InputTag(
"l1tLayer1HGCalElliptic",
'L1TkElePerBoard'),
160 channels=cms.vint32(3, 4)
163 pfProducer=cms.InputTag(
"l1tLayer1Barrel",
'L1TkElePerBoard'),
164 channels=cms.vint32(0, 1, 2)
169 pfProducer=cms.InputTag(
"l1tLayer1HGCalElliptic",
'L1TkEmPerBoard'),
170 channels=cms.vint32(3, 4)
173 pfProducer=cms.InputTag(
"l1tLayer1HGCalNoTK",
'L1TkEmPerBoard'),
174 channels=cms.vint32(-1)
177 pfProducer=cms.InputTag(
"l1tLayer1Barrel",
'L1TkEmPerBoard'),
178 channels=cms.vint32(0, 1, 2)
183 pfProducer=cms.InputTag(
"l1tLayer1HGCalElliptic",
'L1Eg'),
184 channels=cms.vint32(-1)
187 pfProducer=cms.InputTag(
"l1tLayer1HGCalNoTK",
'L1Eg'),
188 channels=cms.vint32(-1)
194 L1TLayer2EGTask = cms.Task(
195 l1tLayer2Deregionizer,