CMS 3D CMS Logo

ValL1Emulator_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # L1 Emulator sequence running on unpacked data
4 # each emulator run on the unpacked data of the previous (in the hardware chain) subsystem
5 #
6 # Order if using the standard sequence
7 # RawToDigi,ValL1Emulator
8 #
9 # V.M. Ghete 2009-11-15
10 
11 
12 # ECAL TPG sequence
14 valEcalTriggerPrimitiveDigis = SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cfi.simEcalTriggerPrimitiveDigis.clone()
15 #
16 valEcalTriggerPrimitiveDigis.Label = 'ecalDigis'
17 valEcalTriggerPrimitiveDigis.InstanceEB = 'ebDigis'
18 valEcalTriggerPrimitiveDigis.InstanceEE = 'eeDigis'
19 
20 
21 # HCAL TPG sequence
23 valHcalTriggerPrimitiveDigis = SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cfi.simHcalTriggerPrimitiveDigis.clone()
24 #
25 valHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(cms.InputTag('hcalDigis'),cms.InputTag('hcalDigis'))
26 valHcalTriggerPrimitiveDigis.inputUpgradeLabel = cms.VInputTag(cms.InputTag('hcalDigis'),cms.InputTag('hcalDigis'))
27 #
28 # do not generate new LUTs when running on data, read them from DB
29 HcalTPGCoderULUT.LUTGenerationMode = cms.bool(False)
30 #
31 #
32 valHcalTriggerPrimitiveDigis.FrontEndFormatError = cms.bool(True)
33 
34 
35 # HCAL Tech Trig sequence
37 valHcalTTPDigis = SimCalorimetry.HcalTrigPrimProducers.hcalTTPDigis_cfi.simHcalTTPDigis.clone()
38 #
39 valHcalTTPDigis.HFDigiCollection = cms.InputTag('hcalDigis')
40 
41 
42 # RCT emulator
44 valRctDigis = L1Trigger.RegionalCaloTrigger.rctDigis_cfi.rctDigis.clone()
45 #
46 valRctDigis.ecalDigis = cms.VInputTag(cms.InputTag('ecalDigis:EcalTriggerPrimitives'))
47 valRctDigis.hcalDigis = cms.VInputTag(cms.InputTag('hcalDigis'))
48 
49 
50 # GCT emulator
51 # RCT data used as input for GCT emulator are part of the GCT FED
53 valGctDigis = L1Trigger.GlobalCaloTrigger.gctDigis_cfi.gctDigis.clone()
54 #
55 valGctDigis.inputLabel = 'gctDigis'
56 valGctDigis.preSamples = cms.uint32(0)
57 valGctDigis.postSamples = cms.uint32(0)
58 
60 # Stage1Layer2 emulator
62 valRctUpgradeFormatDigis = L1Trigger.L1TCalorimeter.simRctUpgradeFormatDigis_cfi.simRctUpgradeFormatDigis.clone(
63  regionTag = cms.InputTag("gctDigis"),
64  emTag = cms.InputTag("gctDigis")
65  )
67 valCaloStage1Digis = L1Trigger.L1TCalorimeter.simCaloStage1Digis_cfi.simCaloStage1Digis.clone(
68  CaloRegions = "valRctUpgradeFormatDigis",
69  CaloEmCands = "valRctUpgradeFormatDigis"
70 )
72 valCaloStage1LegacyFormatDigis = L1Trigger.L1TCalorimeter.simCaloStage1LegacyFormatDigis_cfi.simCaloStage1LegacyFormatDigis.clone()
73 valCaloStage1LegacyFormatDigis.InputCollection = cms.InputTag("valCaloStage1Digis")
74 valCaloStage1LegacyFormatDigis.InputRlxTauCollection = cms.InputTag("valCaloStage1Digis:rlxTaus")
75 valCaloStage1LegacyFormatDigis.InputIsoTauCollection = cms.InputTag("valCaloStage1Digis:isoTaus")
76 valCaloStage1LegacyFormatDigis.InputHFSumsCollection = cms.InputTag("valCaloStage1Digis:HFRingSums")
77 valCaloStage1LegacyFormatDigis.InputHFCountsCollection = cms.InputTag("valCaloStage1Digis:HFBitCounts")
78 valCaloStage1LegacyFormatDigis.bxMin = cms.int32(0)
79 valCaloStage1LegacyFormatDigis.bxMax = cms.int32(0)
80 
81 #from L1Trigger.L1TCalorimeter.caloStage1Params_cfi import *
82 
83 # DT TP emulator
85 valDtTriggerPrimitiveDigis = L1Trigger.DTTrigger.dtTriggerPrimitiveDigis_cfi.dtTriggerPrimitiveDigis.clone()
86 
87 
88 # CSC TP emulator
90 valCscTriggerPrimitiveDigis = L1Trigger.CSCTriggerPrimitives.cscTriggerPrimitiveDigis_cfi.cscTriggerPrimitiveDigis.clone()
91 #
92 valCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag('muonCSCDigis',
93  'MuonCSCComparatorDigi')
94 valCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag('muonCSCDigis',
95  'MuonCSCWireDigi')
96 valCscTriggerPrimitiveDigis.gangedME1a = cms.untracked.bool(False)
97 
98 # CSC Track Finder - digi track generation
99 # currently used also by DT TF to generate CSCTF stubs
101 valCsctfTrackDigis = L1Trigger.CSCTrackFinder.csctfTrackDigis_cfi.csctfTrackDigis.clone()
102 #
103 valCsctfTrackDigis.SectorReceiverInput = 'csctfDigis'
104 valCsctfTrackDigis.DTproducer = 'dttfDigis'
105 valCsctfTrackDigis.SectorProcessor.gangedME1a = cms.untracked.bool(False)
106 
107 # DT Track Finder emulator
108 # currently generates CSCTF stubs by running CSCTF emulator
110 valDttfDigis = L1Trigger.DTTrackFinder.dttfDigis_cfi.dttfDigis.clone()
111 #
112 valDttfDigis.DTDigi_Source = 'dttfDigis'
113 valDttfDigis.CSCStub_Source = 'valCsctfTrackDigis'
114 
115 
116 # CSC Track Finder emulator
118 valCsctfDigis = L1Trigger.CSCTrackFinder.csctfDigis_cfi.csctfDigis.clone()
119 #
120 valCsctfDigis.CSCTrackProducer = 'valCsctfTrackDigis'
121 
122 
123 
124 # RPC PAC Trigger emulator
126 valRpcTriggerDigis = L1Trigger.RPCTrigger.rpcTriggerDigis_cff.rpcTriggerDigis.clone()
127 #
128 valRpcTriggerDigis.label = 'muonRPCDigis'
129 
130 
131 # Global Muon Trigger emulator - input from common GMT/GT unpacker (gtDigis)
133 valGmtDigis = L1Trigger.GlobalMuonTrigger.gmtDigis_cfi.gmtDigis.clone()
134 #
135 valGmtDigis.DTCandidates = cms.InputTag('l1GtUnpack','DT')
136 valGmtDigis.CSCCandidates = cms.InputTag('l1GtUnpack','CSC')
137 valGmtDigis.RPCbCandidates = cms.InputTag('l1GtUnpack','RPCb')
138 valGmtDigis.RPCfCandidates = cms.InputTag('l1GtUnpack','RPCf')
139 valGmtDigis.MipIsoData = 'caloStage1Digis'
140 
141 # producers for technical triggers
142 #
143 
144 
145 # BSC Technical Trigger - no data to run on
146 
147 
148 # RPC Technical Trigger
149 import L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi
150 valRpcTechTrigDigis = L1Trigger.RPCTechnicalTrigger.rpcTechnicalTrigger_cfi.rpcTechnicalTrigger.clone()
151 
152 # HCAL Technical Trigger
154 valHcalTechTrigDigis = SimCalorimetry.HcalTrigPrimProducers.hcalTTPRecord_cfi.simHcalTTPRecord.clone()
155 
156 
157 
158 # Global Trigger emulator
160 valGtDigis = L1Trigger.GlobalTrigger.gtDigis_cfi.gtDigis.clone()
161 valGtDigis.GmtInputTag = 'l1GtUnpack'
162 valGtDigis.GctInputTag = 'gctDigis'
163 valGtDigis.TechnicalTriggersInputTags = cms.VInputTag(
164  cms.InputTag('valRpcTechTrigDigis'),
165  cms.InputTag('valHcalTechTrigDigis') )
166 
167 # Global Trigger emulator for Stage1
169 valStage1GtDigis = L1Trigger.GlobalTrigger.gtDigis_cfi.gtDigis.clone()
170 valStage1GtDigis.GmtInputTag = 'l1GtUnpack'
171 valStage1GtDigis.GctInputTag = 'caloStage1LegacyFormatDigis'
172 valStage1GtDigis.TechnicalTriggersInputTags = cms.VInputTag(
173  cms.InputTag('valRpcTechTrigDigis'),
174  cms.InputTag('valHcalTechTrigDigis') )
175 
176 # L1 Trigger tasks
177 ValL1MuTriggerPrimitives = cms.Task(valCscTriggerPrimitiveDigis,valDtTriggerPrimitiveDigis)
178 ValL1MuTrackFinders = cms.Task(valCsctfTrackDigis,valCsctfDigis,valDttfDigis)
179 
180 ValL1TechnicalTriggers = cms.Task(valRpcTechTrigDigis,valHcalTechTrigDigis)
181 
182 ValL1Emulator = cms.Task(
183  valEcalTriggerPrimitiveDigis
184  ,valHcalTriggerPrimitiveDigis
185  ,valHcalTTPDigis
186  ,valRctDigis
187  ,valGctDigis
188  ,ValL1MuTriggerPrimitives,ValL1MuTrackFinders,valRpcTriggerDigis,valGmtDigis
189  ,ValL1TechnicalTriggers
190  ,valGtDigis
191 )
192 
193 
194 
195 
196 
hcalTTPRecord_cfi
dtTriggerPrimitiveDigis_cfi
ecalTriggerPrimitiveDigis_cfi
gmtDigis_cfi
rpcTriggerDigis_cff
cscTriggerPrimitiveDigis_cfi
hcalTTPDigis_cfi
simCaloStage1Digis_cfi
caloConfigStage1PP_cfi
simCaloStage1LegacyFormatDigis_cfi
csctfDigis_cfi
gctDigis_cfi
csctfTrackDigis_cfi
simRctUpgradeFormatDigis_cfi
rctDigis_cfi
gtDigis_cfi
dttfDigis_cfi
hcaltpdigi_cff