CMS 3D CMS Logo

l1ctLayer2EG_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 l1tLayer2EG = cms.EDProducer(
4  "L1TCtL2EgProducer",
5  tkElectrons=cms.VPSet(
6  cms.PSet(
7  pfProducer=cms.InputTag("l1tLayer1HGCal", 'L1TkElePerBoard'),
8  channels=cms.vint32(3, 4)
9  ),
10  cms.PSet(
11  pfProducer=cms.InputTag("l1tLayer1Barrel", 'L1TkElePerBoard'),
12  channels=cms.vint32(0, 1, 2)
13  ),
14  ),
15  tkEms=cms.VPSet(
16  cms.PSet(
17  pfProducer=cms.InputTag("l1tLayer1HGCal", 'L1TkEmPerBoard'),
18  channels=cms.vint32(3, 4)
19  ),
20  cms.PSet(
21  pfProducer=cms.InputTag("l1tLayer1HGCalNoTK", 'L1TkEmPerBoard'),
22  channels=cms.vint32(-1)
23  ),
24  cms.PSet(
25  pfProducer=cms.InputTag("l1tLayer1Barrel", 'L1TkEmPerBoard'),
26  channels=cms.vint32(0, 1, 2)
27  ),
28  ),
29  tkEgs=cms.VPSet(
30  cms.PSet(
31  pfProducer=cms.InputTag("l1tLayer1HGCal", 'L1Eg'),
32  channels=cms.vint32(-1)
33  ),
34  cms.PSet(
35  pfProducer=cms.InputTag("l1tLayer1HGCalNoTK", 'L1Eg'),
36  channels=cms.vint32(-1)
37  ),
38  ),
39  egStaInstanceLabel=cms.string("L1CtEgEE"),
40  tkEmInstanceLabel=cms.string("L1CtTkEm"),
41  tkEleInstanceLabel=cms.string("L1CtTkElectron"),
42  sorter=cms.PSet(
43  nBOARDS=cms.uint32(5),
44  nEGPerBoard=cms.uint32(16),
45  nEGOut=cms.uint32(12),
46  debug=cms.untracked.uint32(0),
47  ),
48  encoder=cms.PSet(
49  nTKELE_OUT=cms.uint32(12),
50  nTKPHO_OUT=cms.uint32(12),
51  ),
52  writeInPattern=cms.bool(False),
53  writeOutPattern=cms.bool(False),
54  inPatternFile=cms.PSet(
55  nFramesPerBX=cms.uint32(9), # 360 MHz clock or 25 Gb/s link
56  format=cms.string("EMP"),
57  outputFilename=cms.string("L1TCTL2EG_InPattern"),
58  TMUX=cms.uint32(6),
59  maxLinesPerFile=cms.uint32(1024),
60  channels=cms.VPSet(
61  cms.PSet(
62  TMUX=cms.uint32(6),
63  nWords=cms.uint32(48), # = 16*2words ele + 16words photons
64  interface=cms.string("eglayer1"),
65  id=cms.uint32(0),
66  channels=cms.vuint32(0)
67  ),
68  cms.PSet(
69  TMUX=cms.uint32(6),
70  nWords=cms.uint32(48),
71  interface=cms.string("eglayer1"),
72  id=cms.uint32(1),
73  channels=cms.vuint32(1)
74  ),
75  cms.PSet(
76  TMUX=cms.uint32(6),
77  nWords=cms.uint32(48),
78  interface=cms.string("eglayer1"),
79  id=cms.uint32(2),
80  channels=cms.vuint32(2)
81  ),
82  cms.PSet(
83  TMUX=cms.uint32(6),
84  nWords=cms.uint32(48),
85  interface=cms.string("eglayer1"),
86  id=cms.uint32(3),
87  channels=cms.vuint32(3)
88  ),
89  cms.PSet(
90  TMUX=cms.uint32(6),
91  nWords=cms.uint32(48),
92  interface=cms.string("eglayer1"),
93  id=cms.uint32(4),
94  channels=cms.vuint32(4)
95  ),
96 
97  )
98  ),
99  outPatternFile=cms.PSet(
100  nFramesPerBX=cms.uint32(9), # 360 MHz clock or 25 Gb/s link
101  format=cms.string("EMP"),
102  outputFilename=cms.string("L1TCTL2EG_OuPattern"),
103  TMUX=cms.uint32(6),
104  maxLinesPerFile=cms.uint32(1024),
105  channels=cms.VPSet(
106  cms.PSet(
107  TMUX=cms.uint32(6),
108  nWords=cms.uint32(36), # 36 = 12*3/2words ele + 12*3/2words phhotons
109  interface=cms.string("eglayer2"),
110  id=cms.uint32(0),
111  channels=cms.vuint32(0)
112  )
113  )
114  ),
115  # NOTE: to write out the GT input from 6TS
116  # outPatternFile=cms.PSet(
117  # nFramesPerBX=cms.uint32(9), # 360 MHz clock or 25 Gb/s link
118  # format=cms.string("EMP"),
119  # outputFilename=cms.string("L1TCTL2EG_ToGTPattern"),
120  # TMUX=cms.uint32(1),
121  # maxLinesPerFile=cms.uint32(1024),
122  # channels=cms.VPSet(
123  # cms.PSet(
124  # TMUX=cms.uint32(6),
125  # nWords=cms.uint32(36), # 36 = 12*3/2words ele + 12*3/2words phhotons
126  # interface=cms.string("eglayer2"),
127  # id=cms.uint32(0),
128  # channels=cms.vuint32(0, 1, 2, 3, 4, 5)
129  # )
130  # )
131  # )
132 )
133 
134 
135 L1TLayer2EGTask = cms.Task(
136  l1tLayer2EG
137 )