1 from __future__
import print_function
3 import FWCore.ParameterSet.Config
as cms
4 from Configuration.Eras.Modifier_stage2L1Trigger_cff
import stage2L1Trigger
5 from Configuration.Eras.Modifier_stage2L1Trigger_2017_cff
import stage2L1Trigger_2017
8 process.load(
"L1Trigger.L1TCalorimeter.caloStage2Params_HWConfig_cfi")
12 from L1Trigger.L1TCaloLayer1.simCaloStage2Layer1Digis_cfi
import simCaloStage2Layer1Digis
as simCaloStage2BitwiseLayer1Digis
13 from L1Trigger.L1TCalorimeter.simCaloStage2Digis_cfi
import simCaloStage2Digis
as simCaloStage2BitwiseDigis
14 process.simCaloStage2BitwiseLayer1Digis = simCaloStage2BitwiseLayer1Digis.clone()
15 process.simCaloStage2BitwiseLayer1Digis.ecalToken = cms.InputTag(
"ecalDigis:EcalTriggerPrimitives")
16 process.simCaloStage2BitwiseDigis = simCaloStage2BitwiseDigis.clone()
17 process.simCaloStage2BitwiseDigis.towerToken = cms.InputTag(
"simCaloStage2BitwiseLayer1Digis")
18 process.SimL1TCalorimeter = cms.Sequence( process.simCaloStage2Layer1Digis + process.simCaloStage2Digis + process.simCaloStage2BitwiseLayer1Digis + process.simCaloStage2BitwiseDigis)
20 process.l1UpgradeBitwiseTree = l1UpgradeTree.clone()
21 process.l1UpgradeBitwiseTree.egToken = cms.untracked.InputTag(
"simCaloStage2BitwiseDigis")
22 process.l1UpgradeBitwiseTree.tauTokens = cms.untracked.VInputTag(
"simCaloStage2BitwiseDigis")
23 process.l1UpgradeBitwiseTree.jetToken = cms.untracked.InputTag(
"simCaloStage2BitwiseDigis")
24 process.l1UpgradeBitwiseTree.muonToken = cms.untracked.InputTag(
"simGmtStage2Digis")
25 process.l1UpgradeBitwiseTree.sumToken = cms.untracked.InputTag(
"simCaloStage2BitwiseDigis")
26 process.l1ntuplebitwise = cms.Path(
27 process.l1UpgradeBitwiseTree
29 process.schedule.append(process.l1ntuplebitwise)
30 print(
"# modified L1TReEmul: ")
36 process.es_pool_hf1x1 = cms.ESSource(
39 timetype = cms.string(
'runnumber'),
41 cms.PSet(record = cms.string(
"HcalLutMetadataRcd"),
42 tag = cms.string(
"HcalLutMetadata_HFTP_1x1")
44 cms.PSet(record = cms.string(
"HcalElectronicsMapRcd"),
45 tag = cms.string(
"HcalElectronicsMap_HFTP_1x1")
48 connect = cms.string(
'frontier://FrontierProd/CMS_CONDITIONS'),
49 authenticationMethod = cms.untracked.uint32(0)
51 process.es_prefer_es_pool_hf1x1 = cms.ESPrefer(
"PoolDBESSource",
"es_pool_hf1x1")
55 process.load(
'L1Trigger.Configuration.SimL1Emulator_cff')
56 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
57 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis' 58 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
59 cms.InputTag(
'hcalDigis'),
60 cms.InputTag(
'hcalDigis')
62 process.L1TReEmul = cms.Sequence(process.simEcalTriggerPrimitiveDigis * process.simHcalTriggerPrimitiveDigis * process.SimL1Emulator)
63 process.simDtTriggerPrimitiveDigis.digiTag =
'muonDTDigis' 64 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi')
65 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
67 if stage2L1Trigger.isChosen():
68 process.simTwinMuxDigis.RPC_Source = cms.InputTag(
'muonRPCDigis')
70 process.simTwinMuxDigis.DTDigi_Source = cms.InputTag(
"dttfDigis")
71 process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag(
"dttfDigis")
72 process.simOmtfDigis.srcRPC = cms.InputTag(
'muonRPCDigis')
73 process.simBmtfDigis.DTDigi_Source = cms.InputTag(
"simTwinMuxDigis")
74 process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag(
"dttfDigis")
75 process.simEmtfDigis.CSCInput = cms.InputTag(
"csctfDigis")
76 process.simEmtfDigis.RPCInput = cms.InputTag(
'muonRPCDigis')
77 process.simOmtfDigis.srcCSC = cms.InputTag(
"csctfDigis")
78 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
"ecalDigis:EcalTriggerPrimitives")
79 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
80 process.schedule.append(process.L1TReEmulPath)
82 if hasattr(process,
"caloStage2Digis"):
83 process.caloStage2Digis.MinFeds = cms.uint32(0)
84 if hasattr(process,
"gmtStage2Digis"):
85 process.gmtStage2Digis.MinFeds = cms.uint32(0)
86 if hasattr(process,
"gtStage2Digis"):
87 process.gtStage2Digis.MinFeds = cms.uint32(0)
89 process.simRctDigis.ecalDigis = cms.VInputTag(
'simEcalTriggerPrimitiveDigis')
90 process.simRctDigis.hcalDigis = cms.VInputTag(
'simHcalTriggerPrimitiveDigis')
91 process.simRpcTriggerDigis.label =
'muonRPCDigis' 92 process.simRpcTechTrigDigis.RPCDigiLabel =
'muonRPCDigis' 93 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
94 process.schedule.append(process.L1TReEmulPath)
96 print(
"# L1TReEmul sequence: ")
103 if stage2L1Trigger.isChosen():
104 process.simEmtfDigis.CSCInput = cms.InputTag(
'simCscTriggerPrimitiveDigis',
'MPCSORTED')
105 process.simOmtfDigis.srcCSC = cms.InputTag(
'simCscTriggerPrimitiveDigis',
'MPCSORTED')
110 if stage2L1Trigger.isChosen():
111 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
"simEcalTriggerPrimitiveDigis")
115 process.load(
'L1Trigger.Configuration.SimL1Emulator_cff')
116 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
117 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis' 118 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
119 cms.InputTag(
'hcalDigis'),
120 cms.InputTag(
'hcalDigis')
122 process.simHcalTriggerPrimitiveDigis.inputUpgradeLabel = cms.VInputTag(
123 cms.InputTag(
'hcalDigis'),
124 cms.InputTag(
'hcalDigis')
126 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi')
127 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
128 process.L1TReEmul = cms.Sequence(process.simEcalTriggerPrimitiveDigis * process.simHcalTriggerPrimitiveDigis * process.SimL1Emulator)
129 if stage2L1Trigger.isChosen():
134 process.simTwinMuxDigis.RPC_Source = cms.InputTag(
'RPCTwinMuxRawToDigi')
135 process.simTwinMuxDigis.DTDigi_Source = cms.InputTag(
'twinMuxStage2Digis:PhIn')
136 process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag(
'twinMuxStage2Digis:ThIn')
138 process.simBmtfDigis.DTDigi_Source = cms.InputTag(
'simTwinMuxDigis')
139 process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag(
'bmtfDigis')
141 process.simOmtfDigis.srcRPC = cms.InputTag(
'muonRPCDigis')
142 process.simOmtfDigis.srcCSC = cms.InputTag(
'csctfDigis')
143 process.simOmtfDigis.srcDTPh = cms.InputTag(
'bmtfDigis')
144 process.simOmtfDigis.srcDTTh = cms.InputTag(
'bmtfDigis')
146 process.simEmtfDigis.CSCInput = cms.InputTag(
'emtfStage2Digis')
147 process.simEmtfDigis.RPCInput = cms.InputTag(
'muonRPCDigis')
149 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
'ecalDigis:EcalTriggerPrimitives')
150 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'hcalDigis:')
151 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
152 process.schedule.append(process.L1TReEmulPath)
155 process.simRctDigis.ecalDigis = cms.VInputTag( cms.InputTag(
'ecalDigis:EcalTriggerPrimitives' ) )
156 process.simRctDigis.hcalDigis = cms.VInputTag(
'hcalDigis:')
157 process.simRpcTriggerDigis.label =
'muonRPCDigis' 158 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
159 process.schedule.append(process.L1TReEmulPath)
165 if stage2L1Trigger_2017.isChosen():
166 process.simOmtfDigis.srcRPC = cms.InputTag(
'omtfStage2Digis')
167 process.simOmtfDigis.srcCSC = cms.InputTag(
'omtfStage2Digis')
168 process.simOmtfDigis.srcDTPh = cms.InputTag(
'omtfStage2Digis')
169 process.simOmtfDigis.srcDTTh = cms.InputTag(
'omtfStage2Digis')
171 print(
"# L1TReEmul sequence: ")
178 process.simGtStage2Digis.MuonInputTag = cms.InputTag(
"gtStage2Digis",
"Muon")
183 process.load(
'L1Trigger.Configuration.SimL1Emulator_cff')
184 process.L1TReEmul = cms.Sequence(process.SimL1TGlobal)
185 if stage2L1Trigger_2017.isChosen():
186 process.simGtStage2Digis.ExtInputTag = cms.InputTag(
"hltGtStage2Digis")
187 process.simGtStage2Digis.MuonInputTag = cms.InputTag(
"hltGtStage2Digis",
"Muon")
188 process.simGtStage2Digis.EtSumInputTag = cms.InputTag(
"hltGtStage2Digis",
"EtSum")
189 process.simGtStage2Digis.EGammaInputTag = cms.InputTag(
"hltGtStage2Digis",
"EGamma")
190 process.simGtStage2Digis.TauInputTag = cms.InputTag(
"hltGtStage2Digis",
"Tau")
191 process.simGtStage2Digis.JetInputTag = cms.InputTag(
"hltGtStage2Digis",
"Jet")
193 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
194 process.schedule.append(process.L1TReEmulPath)
196 print (
"# L1TReEmul sequence: ")
197 print (
"# {0}".
format(process.L1TReEmul))
198 print (
"# {0}".
format(process.schedule))
202 process.load(
'L1Trigger.Configuration.SimL1CaloEmulator_cff')
203 process.L1TReEmul = cms.Sequence(process.SimL1CaloEmulator)
204 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
'ecalDigis:EcalTriggerPrimitives')
205 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'hcalDigis:')
206 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
207 process.schedule.append(process.L1TReEmulPath)
209 print (
"# L1TReEmul sequence: ")
210 print (
"# {0}".
format(process.L1TReEmul))
211 print (
"# {0}".
format(process.schedule))
216 if stage2L1Trigger.isChosen():
217 process.simEmtfDigis.CSCInput = cms.InputTag(
'simCscTriggerPrimitiveDigis',
'MPCSORTED')
218 process.simOmtfDigis.srcCSC = cms.InputTag(
'simCscTriggerPrimitiveDigis',
'MPCSORTED')
223 if stage2L1Trigger.isChosen():
224 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
"simEcalTriggerPrimitiveDigis")
229 if stage2L1Trigger.isChosen():
230 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'simHcalTriggerPrimitiveDigis')
235 if stage2L1Trigger.isChosen():
236 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
237 cms.InputTag(
'simHcalUnsuppressedDigis'),
238 cms.InputTag(
'simHcalUnsuppressedDigis')
240 process.simHcalTriggerPrimitiveDigis.inputUpgradeLabel = cms.VInputTag(
241 cms.InputTag(
'simHcalUnsuppressedDigis:HBHEQIE11DigiCollection'),
242 cms.InputTag(
'simHcalUnsuppressedDigis:HFQIE10DigiCollection')
244 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'simHcalTriggerPrimitiveDigis')
252 if stage2L1Trigger.isChosen():
253 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
"simEcalTriggerPrimitiveDigis")
254 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'simHcalTriggerPrimitiveDigis')
259 if stage2L1Trigger.isChosen():
260 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
"simEcalTriggerPrimitiveDigis")
265 if stage2L1Trigger.isChosen():
266 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'simHcalTriggerPrimitiveDigis')
271 if stage2L1Trigger.isChosen():
273 process.simTwinMuxDigis.RPC_Source = cms.InputTag(
'muonRPCDigis')
274 process.simTwinMuxDigis.DTDigi_Source = cms.InputTag(
'simDtTriggerPrimitiveDigis')
275 process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag(
'simDtTriggerPrimitiveDigis')
277 process.simBmtfDigis.DTDigi_Source = cms.InputTag(
'simTwinMuxDigis')
278 process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag(
'simDtTriggerPrimitiveDigis')
280 process.simOmtfDigis.srcRPC = cms.InputTag(
'muonRPCDigis')
281 process.simOmtfDigis.srcCSC = cms.InputTag(
'simCscTriggerPrimitiveDigis')
282 process.simOmtfDigis.srcDTPh = cms.InputTag(
'simDtTriggerPrimitiveDigis')
283 process.simOmtfDigis.srcDTTh = cms.InputTag(
'simDtTriggerPrimitiveDigis')
285 process.simEmtfDigis.CSCInput = cms.InputTag(
'simCscTriggerPrimitiveDigis')
286 process.simEmtfDigis.RPCInput = cms.InputTag(
'muonRPCDigis')
288 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
"simEcalTriggerPrimitiveDigis")
289 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'simHcalTriggerPrimitiveDigis')
293 process.load(
'L1Trigger.Configuration.SimL1Emulator_cff')
294 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
295 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis' 296 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
297 cms.InputTag(
'hcalDigis'),
298 cms.InputTag(
'hcalDigis')
302 process.load(
'L1Trigger.L1TCommon.muonLegacyInStage2FormatDigis_cfi')
303 process.muonLegacyInStage2FormatDigis.muonSource = cms.InputTag(
'simGmtDigis')
307 process.simDtTriggerPrimitiveDigis = dtTriggerPrimitiveDigis.clone()
308 process.simDtTriggerPrimitiveDigis.digiTag = cms.InputTag(
'muonDTDigis')
312 process.simTwinMuxDigisForDttf = simTwinMuxDigis.clone()
313 process.simTwinMuxDigisForDttf.RPC_Source = cms.InputTag(
'muonRPCDigis')
314 process.simTwinMuxDigisForDttf.DTDigi_Source = cms.InputTag(
'bmtfDigis')
315 process.simTwinMuxDigisForDttf.DTThetaDigi_Source = cms.InputTag(
'bmtfDigis')
319 process.simCscTriggerPrimitiveDigis = cscTriggerPrimitiveDigis.clone()
320 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi' )
321 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
326 process.simCsctfTrackDigis = csctfTrackDigis.clone()
327 process.simCsctfTrackDigis.SectorReceiverInput = cms.untracked.InputTag(
'csctfDigis' )
328 process.simCsctfTrackDigis.DTproducer =
'simDtTriggerPrimitiveDigis' 330 process.simCsctfDigis = csctfDigis.clone()
331 process.simCsctfDigis.CSCTrackProducer =
'simCsctfTrackDigis' 336 process.simDttfDigis = dttfDigis.clone()
337 process.simDttfDigis.DTDigi_Source =
'simTwinMuxDigisForDttf' 338 process.simDttfDigis.CSCStub_Source =
'simCsctfTrackDigis' 343 process.load(
'L1Trigger.RPCTrigger.RPCConeConfig_cff')
344 process.simRpcTriggerDigis = rpcTriggerDigis.clone()
345 process.simRpcTriggerDigis.label =
'muonRPCDigis' 346 process.simRpcTriggerDigis.RPCTriggerDebug = cms.untracked.int32(1)
352 process.simGmtDigis = gmtDigis.clone()
353 process.simGmtDigis.DTCandidates = cms.InputTag(
'simDttfDigis',
'DT' )
354 process.simGmtDigis.CSCCandidates = cms.InputTag(
'simCsctfDigis',
'CSC' )
355 process.simGmtDigis.RPCbCandidates = cms.InputTag(
'simRpcTriggerDigis',
'RPCb' )
356 process.simGmtDigis.RPCfCandidates = cms.InputTag(
'simRpcTriggerDigis',
'RPCf' )
362 process.simBmtfDigis.DTDigi_Source = cms.InputTag(
'bmtfDigis')
363 process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag(
'bmtfDigis')
365 process.simTwinMuxDigis.RPC_Source = cms.InputTag(
'muonRPCDigis')
366 process.simTwinMuxDigis.DTDigi_Source = cms.InputTag(
'bmtfDigis')
367 process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag(
'bmtfDigis')
369 process.simOmtfDigis.srcRPC = cms.InputTag(
'muonRPCDigis')
370 process.simOmtfDigis.srcCSC = cms.InputTag(
'csctfDigis')
371 process.simOmtfDigis.srcDTPh = cms.InputTag(
'bmtfDigis')
372 process.simOmtfDigis.srcDTTh = cms.InputTag(
'bmtfDigis')
374 process.simEmtfDigis.CSCInput = cms.InputTag(
'emtfStage2Digis')
375 process.simEmtfDigis.RPCInput = cms.InputTag(
'muonRPCDigis')
377 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
'ecalDigis:EcalTriggerPrimitives')
378 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'hcalDigis:')
382 process.L1TMuonTriggerPrimitives = cms.Sequence(process.simCscTriggerPrimitiveDigis + process.simDtTriggerPrimitiveDigis + process.simTwinMuxDigisForDttf)
384 process.L1TReEmul = cms.Sequence(process.L1TMuonTriggerPrimitives + process.simCsctfTrackDigis + process.simCsctfDigis + process.simDttfDigis + process.simRpcTriggerDigis + process.simGmtDigis + process.muonLegacyInStage2FormatDigis)
386 process.load(
'L1Trigger.L1TMuon.simMuonQualityAdjusterDigis_cfi')
388 process.L1TReEmul = cms.Sequence( process.L1TReEmul + process.simTwinMuxDigis + process.simBmtfDigis + process.simEmtfDigis + process.simOmtfDigis + process.simGmtCaloSumDigis + process.simMuonQualityAdjusterDigis + process.simGmtStage2Digis)
390 process.L1TReEmul = cms.Sequence( process.L1TReEmul + process.SimL1TechnicalTriggers + process.SimL1TGlobal )
392 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
393 process.schedule.append(process.L1TReEmulPath)
394 print(
"# L1TReEmul sequence: ")
def L1TReEmulMCFromRAWSimCalTP(process)
def L1TReEmulFromRAWCalo(process)
def L1TReEmulMCFromRAW(process)
def L1TReEmulMCFromRAWSimHcalTP(process)
def L1TReEmulFromRAWsimEcalTP(process)
S & print(S &os, JobReport::InputFile const &f)
def L1TReEmulFromRAW2016(process)
def L1TReEmulFromRAW2015simCaloTP(process)
def L1TReEmulMCFrom90xRAWSimHcalTP(process)
def L1TReEmulFromRAW2015(process)
def L1TReEmulFromRAWLegacyMuon(process)
def L1TCaloStage2ParamsForHW(process)
def L1TReEmulFromRAW(process)
def L1TReEmulFromRAWsimHcalTP(process)
def L1TEventSetupForHF1x1TPs(process)
def L1TReEmulFromRAWCalouGT(process)
def L1TReEmulMCFromRAW2015(process)
def L1TReEmulFromRAWsimTP(process)
def L1TReEmulFromNANO(process)
def L1TReEmulMCFromRAWSimEcalTP(process)
def L1TAddBitwiseLayer1(process)