Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:55:57

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from L1Trigger.Phase2L1ParticleFlow.l1tDeregionizerProducer_cfi import l1tDeregionizerProducer as l1tLayer2Deregionizer
0004 
0005 l1tLayer2EG = cms.EDProducer(
0006     "L1TCtL2EgProducer",
0007     tkElectrons=cms.VPSet(
0008         cms.PSet(
0009             pfProducer=cms.InputTag("l1tLayer1HGCal", 'L1TkElePerBoard'),
0010             channels=cms.vint32(3, 4)
0011         ),
0012         cms.PSet(
0013             pfProducer=cms.InputTag("l1tLayer1Barrel", 'L1TkElePerBoard'),
0014             channels=cms.vint32(0, 1, 2)
0015         ),
0016     ),
0017     tkEms=cms.VPSet(
0018         cms.PSet(
0019             pfProducer=cms.InputTag("l1tLayer1HGCal", 'L1TkEmPerBoard'),
0020             channels=cms.vint32(3, 4)
0021         ),
0022         cms.PSet(
0023             pfProducer=cms.InputTag("l1tLayer1HGCalNoTK", 'L1TkEmPerBoard'),
0024             channels=cms.vint32(-1)
0025         ),
0026         cms.PSet(
0027             pfProducer=cms.InputTag("l1tLayer1Barrel", 'L1TkEmPerBoard'),
0028             channels=cms.vint32(0, 1, 2)
0029         ),
0030     ),
0031     tkEgs=cms.VPSet(
0032         cms.PSet(
0033             pfProducer=cms.InputTag("l1tLayer1HGCal", 'L1Eg'),
0034             channels=cms.vint32(-1)
0035         ),
0036         cms.PSet(
0037             pfProducer=cms.InputTag("l1tLayer1HGCalNoTK", 'L1Eg'),
0038             channels=cms.vint32(-1)
0039         ),
0040     ),
0041     l1PFObjects = cms.InputTag("l1tLayer2Deregionizer", "Puppi"),
0042     egStaInstanceLabel=cms.string("L1CtEgEE"),
0043     tkEmInstanceLabel=cms.string("L1CtTkEm"),
0044     tkEleInstanceLabel=cms.string("L1CtTkElectron"),
0045     sorter=cms.PSet(
0046         nBOARDS=cms.uint32(5),
0047         nEGPerBoard=cms.uint32(16),
0048         nEGOut=cms.uint32(12),
0049         debug=cms.untracked.uint32(0),
0050     ),
0051     encoder=cms.PSet(
0052         nTKELE_OUT=cms.uint32(12),
0053         nTKPHO_OUT=cms.uint32(12),
0054     ),
0055     puppiIsoParametersTkEm = cms.PSet(
0056         pfIsoType = cms.string("PUPPI"),
0057         pfPtMin = cms.double(1.),
0058         dZ = cms.double(0.6),
0059         dRMin = cms.double(0.07),
0060         dRMax = cms.double(0.3),
0061         pfCandReuse = cms.bool(True)
0062     ),
0063     puppiIsoParametersTkEle = cms.PSet(
0064         pfIsoType = cms.string("PUPPI"),
0065         pfPtMin = cms.double(1.),
0066         dZ = cms.double(0.6),
0067         dRMin = cms.double(0.03),
0068         dRMax = cms.double(0.2),
0069         pfCandReuse = cms.bool(True)
0070     ),
0071     writeInPattern=cms.bool(False),
0072     writeOutPattern=cms.bool(False),
0073     inPatternFile=cms.PSet(
0074         nFramesPerBX=cms.uint32(9),  # 360 MHz clock or 25 Gb/s link
0075         format=cms.string("EMPv2"),
0076         outputFilename=cms.string("L1TCTL2EG_InPattern"),
0077         outputFileExtension=cms.string("txt.gz"),
0078         TMUX=cms.uint32(6),
0079         maxLinesPerFile=cms.uint32(1024),
0080         channels=cms.VPSet(
0081             cms.PSet(
0082                 TMUX=cms.uint32(6),
0083                 nWords=cms.uint32(48),  # = 16*2words ele + 16words photons
0084                 interface=cms.string("eglayer1"),
0085                 id=cms.uint32(0),
0086                 channels=cms.vuint32(0)
0087                 ),
0088             cms.PSet(
0089                 TMUX=cms.uint32(6),
0090                 nWords=cms.uint32(48),
0091                 interface=cms.string("eglayer1"),
0092                 id=cms.uint32(1),
0093                 channels=cms.vuint32(1)
0094                 ),
0095             cms.PSet(
0096                 TMUX=cms.uint32(6),
0097                 nWords=cms.uint32(48),
0098                 interface=cms.string("eglayer1"),
0099                 id=cms.uint32(2),
0100                 channels=cms.vuint32(2)
0101                 ),
0102             cms.PSet(
0103                 TMUX=cms.uint32(6),
0104                 nWords=cms.uint32(48),
0105                 interface=cms.string("eglayer1"),
0106                 id=cms.uint32(3),
0107                 channels=cms.vuint32(3)
0108                 ),
0109             cms.PSet(
0110                 TMUX=cms.uint32(6),
0111                 nWords=cms.uint32(48),
0112                 interface=cms.string("eglayer1"),
0113                 id=cms.uint32(4),
0114                 channels=cms.vuint32(4)
0115                 ),
0116 
0117         )
0118     ),
0119     outPatternFile=cms.PSet(
0120         nFramesPerBX=cms.uint32(9),  # 360 MHz clock or 25 Gb/s link
0121         format=cms.string("EMPv2"),
0122         outputFilename=cms.string("L1TCTL2EG_OutPattern"),
0123         outputFileExtension=cms.string("txt.gz"),
0124         TMUX=cms.uint32(6),
0125         maxLinesPerFile=cms.uint32(1024),
0126         channels=cms.VPSet(
0127             cms.PSet(
0128                 TMUX=cms.uint32(6),
0129                 nWords=cms.uint32(36),  # 36 = 12*3/2words ele + 12*3/2words photons
0130                 interface=cms.string("eglayer2"),
0131                 id=cms.uint32(0),
0132                 channels=cms.vuint32(0)
0133                 )
0134         )
0135     ),
0136     # NOTE: to write out the GT input from 6TS 
0137     # outPatternFile=cms.PSet(
0138     #     nFramesPerBX=cms.uint32(9),  # 360 MHz clock or 25 Gb/s link
0139     #     format=cms.string("EMPv2"),
0140     #     outputFilename=cms.string("L1TCTL2EG_ToGTPattern"),
0141     #     outputFileExtension=cms.string("txt.gz"),
0142     #     TMUX=cms.uint32(1),
0143     #     maxLinesPerFile=cms.uint32(1024),
0144     #     channels=cms.VPSet(
0145     #         cms.PSet(
0146     #             TMUX=cms.uint32(6),
0147     #             nWords=cms.uint32(36),  # 36 = 12*3/2words ele + 12*3/2words phhotons
0148     #             interface=cms.string("eglayer2"),
0149     #             id=cms.uint32(0),
0150     #             channels=cms.vuint32(0, 1, 2, 3, 4, 5)
0151     #             )
0152     #     )
0153     # )
0154 )
0155 
0156 l1tLayer2EGElliptic = l1tLayer2EG.clone(
0157      tkElectrons=cms.VPSet(
0158         cms.PSet(
0159             pfProducer=cms.InputTag("l1tLayer1HGCalElliptic", 'L1TkElePerBoard'),
0160             channels=cms.vint32(3, 4)
0161         ),
0162         cms.PSet(
0163             pfProducer=cms.InputTag("l1tLayer1Barrel", 'L1TkElePerBoard'),
0164             channels=cms.vint32(0, 1, 2)
0165         ),
0166     ),
0167     tkEms=cms.VPSet(
0168         cms.PSet(
0169             pfProducer=cms.InputTag("l1tLayer1HGCalElliptic", 'L1TkEmPerBoard'),
0170             channels=cms.vint32(3, 4)
0171         ),
0172         cms.PSet(
0173             pfProducer=cms.InputTag("l1tLayer1HGCalNoTK", 'L1TkEmPerBoard'),
0174             channels=cms.vint32(-1)
0175         ),
0176         cms.PSet(
0177             pfProducer=cms.InputTag("l1tLayer1Barrel", 'L1TkEmPerBoard'),
0178             channels=cms.vint32(0, 1, 2)
0179         ),
0180     ),
0181     tkEgs=cms.VPSet(
0182         cms.PSet(
0183             pfProducer=cms.InputTag("l1tLayer1HGCalElliptic", 'L1Eg'),
0184             channels=cms.vint32(-1)
0185         ),
0186         cms.PSet(
0187             pfProducer=cms.InputTag("l1tLayer1HGCalNoTK", 'L1Eg'),
0188             channels=cms.vint32(-1)
0189         ),
0190     ),
0191 )
0192 
0193 
0194 L1TLayer2EGTask = cms.Task(
0195      l1tLayer2Deregionizer,
0196      l1tLayer2EG,
0197      l1tLayer2EGElliptic
0198 )