CMS 3D CMS Logo

l1tDeregionizerProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Specifications for Correlator Layer 1 output mapping onto links
4 barrelConfig_ = cms.PSet(
5  partition = cms.string("Barrel"),
6  nLinksPuppi = cms.uint32(6),
7  nPuppiPerRegion = cms.uint32(18),
8  nOutputFramesPerBX = cms.uint32(9),
9 )
10 
11 barrelPhiConfigs = [
12  barrelConfig_.clone(
13  outputRegions = cms.vuint32(*[3*ip+9*ie+i for ie in range(6) for i in range(3) ]),
14  outputBoard = cms.int32(ip),
15  ) for ip in range(3)
16 ]
17 
18 hgcalConfig_ = cms.PSet(
19  partition = cms.string("HGCal"),
20  nLinksPuppi = cms.uint32(3),
21  nPuppiPerRegion = cms.uint32(18),
22  nOutputFramesPerBX = cms.uint32(9),
23  outputRegions = cms.vuint32(*[54 + i+9 for i in range(9)]),
24  outputBoard = cms.int32(3),
25 )
26 
27 hgcalPosConfig = hgcalConfig_.clone(
28  outputBoard = 4
29 )
30 hgcalNegConfig = hgcalConfig_.clone(
31  outputRegions = [54 + i for i in range(9)]
32 )
33 
34 hgcalNoTKConfig = cms.PSet(
35  partition = cms.string("HGCalNoTk"),
36  nLinksPuppi = cms.uint32(4),
37  nPuppiPerRegion = cms.uint32(12),
38  nOutputFramesPerBX = cms.uint32(9),
39  outputRegions = cms.vuint32(*range(72,72+18)),
40  outputBoard = cms.int32(5),
41 )
42 
43 hfConfig_ = cms.PSet(
44  partition = cms.string("HF"),
45  nLinksPuppi = cms.uint32(3),
46  nPuppiPerRegion = cms.uint32(18),
47  nOutputFramesPerBX = cms.uint32(9),
48 )
49 hfConfigs = [
50  hfConfig_.clone(
51  outputRegions = cms.vuint32(*[90+9*ie+i for i in range(9)]),
52  outputBoard = cms.int32(6 + ie),
53  ) for ie in range(2)
54 ]
55 
56 linkConfigs = cms.VPSet(*barrelPhiConfigs, hgcalPosConfig, hgcalNegConfig, hgcalNoTKConfig, *hfConfigs)
57 
58 l1tDeregionizerProducer = cms.EDProducer("DeregionizerProducer",
59  RegionalPuppiCands = cms.InputTag("l1tLayer1","PuppiRegional"),
60  nPuppiFinalBuffer = cms.uint32(128),
61  nPuppiPerClk = cms.uint32(6),
62  nPuppiFirstBuffers = cms.uint32(12),
63  nPuppiSecondBuffers = cms.uint32(32),
64  nPuppiThirdBuffers = cms.uint32(64),
65  nInputFramesPerBX = cms.uint32(9),
66  linkConfigs = linkConfigs,
67  )
68 
69 l1tDeregionizerProducerExtended = l1tDeregionizerProducer.clone(RegionalPuppiCands = cms.InputTag("l1tLayer1Extended","PuppiRegional"))