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 stage2L1Trigger.toModify(process.simTwinMuxDigis,
68 RPC_Source =
'muonRPCDigis',
70 DTDigi_Source =
"dttfDigis",
71 DTThetaDigi_Source =
"dttfDigis" 73 stage2L1Trigger.toModify(process.simOmtfDigis,
74 srcRPC =
'muonRPCDigis',
77 stage2L1Trigger.toModify(process.simBmtfDigis,
78 DTDigi_Source =
"simTwinMuxDigis",
79 DTDigi_Theta_Source =
"dttfDigis" 81 stage2L1Trigger.toModify(process.simEmtfDigis,
82 CSCInput =
"csctfDigis",
83 RPCInput =
'muonRPCDigis' 85 stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, ecalToken =
"ecalDigis:EcalTriggerPrimitives")
87 stage2L1Trigger.toModify(process.caloStage2Digis, MinFeds = 0)
88 stage2L1Trigger.toModify(process.gmtStage2Digis, MinFeds = 0)
89 stage2L1Trigger.toModify(process.gtStage2Digis, MinFeds = 0)
91 (~stage2L1Trigger).toModify(process.simRctDigis,
92 ecalDigis = [
'simEcalTriggerPrimitiveDigis'],
93 hcalDigis = [
'simHcalTriggerPrimitiveDigis']
95 (~stage2L1Trigger).toModify(process.simRpcTriggerDigis, label =
'muonRPCDigis')
96 (~stage2L1Trigger).toModify(process.simRpcTechTrigDigis, RPCDigiLabel =
'muonRPCDigis')
98 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
99 process.schedule.append(process.L1TReEmulPath)
101 print(
"# L1TReEmul sequence: ")
108 stage2L1Trigger.toModify(process.simEmtfDigis, CSCInput =
'simCscTriggerPrimitiveDigis:MPCSORTED')
109 stage2L1Trigger.toModify(process.simOmtfDigis, srcCSC =
'simCscTriggerPrimitiveDigis:MPCSORTED')
114 stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, ecalToken =
"simEcalTriggerPrimitiveDigis")
118 process.load(
'L1Trigger.Configuration.SimL1Emulator_cff')
119 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
120 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis' 121 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
122 cms.InputTag(
'hcalDigis'),
123 cms.InputTag(
'hcalDigis')
125 process.simHcalTriggerPrimitiveDigis.inputUpgradeLabel = cms.VInputTag(
126 cms.InputTag(
'hcalDigis'),
127 cms.InputTag(
'hcalDigis')
129 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi')
130 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
131 process.L1TReEmul = cms.Sequence(process.simEcalTriggerPrimitiveDigis * process.simHcalTriggerPrimitiveDigis * process.SimL1Emulator)
137 stage2L1Trigger.toModify(process.simTwinMuxDigis,
138 RPC_Source =
'RPCTwinMuxRawToDigi',
139 DTDigi_Source =
'twinMuxStage2Digis:PhIn',
140 DTThetaDigi_Source =
'twinMuxStage2Digis:ThIn' 143 stage2L1Trigger.toModify(process.simBmtfDigis,
144 DTDigi_Source =
'simTwinMuxDigis',
145 DTDigi_Theta_Source =
'bmtfDigis' 148 stage2L1Trigger.toModify(process.simOmtfDigis,
149 srcRPC =
'muonRPCDigis',
150 srcCSC =
'csctfDigis',
151 srcDTPh =
'bmtfDigis',
152 srcDTTh =
'bmtfDigis' 155 stage2L1Trigger.toModify(process.simEmtfDigis,
156 CSCInput =
'emtfStage2Digis',
157 RPCInput =
'muonRPCDigis' 160 stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis,
161 ecalToken =
'ecalDigis:EcalTriggerPrimitives',
162 hcalToken =
'hcalDigis:' 165 (~stage2L1Trigger).toModify(process.simRctDigis,
166 ecalDigis = [
'ecalDigis:EcalTriggerPrimitives'],
167 hcalDigis = [
'hcalDigis:']
169 (~stage2L1Trigger).toModify(process.simRpcTriggerDigis, label =
'muonRPCDigis')
171 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
172 process.schedule.append(process.L1TReEmulPath)
178 stage2L1Trigger_2017.toModify(process.simOmtfDigis,
179 srcRPC =
'omtfStage2Digis',
180 srcCSC =
'omtfStage2Digis',
181 srcDTPh =
'omtfStage2Digis',
182 srcDTTh =
'omtfStage2Digis' 185 print(
"# L1TReEmul sequence: ")
192 process.simGtStage2Digis.MuonInputTag = cms.InputTag(
"gtStage2Digis",
"Muon")
197 process.load(
'L1Trigger.Configuration.SimL1Emulator_cff')
198 process.L1TReEmul = cms.Sequence(process.SimL1TGlobal)
199 stage2L1Trigger_2017.toModify(process.simGtStage2Digis,
200 ExtInputTag =
"hltGtStage2Digis",
201 MuonInputTag =
"hltGtStage2Digis:Muon",
202 EtSumInputTag =
"hltGtStage2Digis:EtSum",
203 EGammaInputTag =
"hltGtStage2Digis:EGamma",
204 TauInputTag =
"hltGtStage2Digis:Tau",
205 JetInputTag =
"hltGtStage2Digis:Jet" 208 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
209 process.schedule.append(process.L1TReEmulPath)
211 print (
"# L1TReEmul sequence: ")
212 print (
"# {0}".
format(process.L1TReEmul))
213 print (
"# {0}".
format(process.schedule))
217 process.load(
'L1Trigger.Configuration.SimL1CaloEmulator_cff')
218 process.L1TReEmul = cms.Sequence(process.SimL1CaloEmulator)
219 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
'ecalDigis:EcalTriggerPrimitives')
220 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'hcalDigis:')
221 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
222 process.schedule.append(process.L1TReEmulPath)
224 print (
"# L1TReEmul sequence: ")
225 print (
"# {0}".
format(process.L1TReEmul))
226 print (
"# {0}".
format(process.schedule))
231 stage2L1Trigger.toModify(process.simEmtfDigis, CSCInput =
'simCscTriggerPrimitiveDigis:MPCSORTED')
232 stage2L1Trigger.toModify(process.simOmtfDigis, srcCSC =
'simCscTriggerPrimitiveDigis:MPCSORTED')
237 stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, ecalToken =
"simEcalTriggerPrimitiveDigis")
242 stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, hcalToken =
'simHcalTriggerPrimitiveDigis')
247 stage2L1Trigger.toModify(process.simHcalTriggerPrimitiveDigis,
249 'simHcalUnsuppressedDigis',
250 'simHcalUnsuppressedDigis' 252 inputUpgradeLabel = [
253 'simHcalUnsuppressedDigis:HBHEQIE11DigiCollection',
254 'simHcalUnsuppressedDigis:HFQIE10DigiCollection' 257 stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, hcalToken =
'simHcalTriggerPrimitiveDigis')
265 stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis,
266 ecalToken =
"simEcalTriggerPrimitiveDigis",
267 hcalToken =
'simHcalTriggerPrimitiveDigis' 273 stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, ecalToken =
"simEcalTriggerPrimitiveDigis")
278 stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis, hcalToken =
'simHcalTriggerPrimitiveDigis')
284 stage2L1Trigger.toModify(process.simTwinMuxDigis,
285 RPC_Source =
'muonRPCDigis',
286 DTDigi_Source =
'simDtTriggerPrimitiveDigis',
287 DTThetaDigi_Source =
'simDtTriggerPrimitiveDigis' 290 stage2L1Trigger.toModify(process.simBmtfDigis,
291 DTDigi_Source =
'simTwinMuxDigis',
292 DTDigi_Theta_Source =
'simDtTriggerPrimitiveDigis' 295 stage2L1Trigger.toModify(process.simOmtfDigis,
296 srcRPC =
'muonRPCDigis',
297 srcCSC =
'simCscTriggerPrimitiveDigis',
298 srcDTPh =
'simDtTriggerPrimitiveDigis',
299 srcDTTh =
'simDtTriggerPrimitiveDigis' 302 stage2L1Trigger.toModify(process.simEmtfDigis,
303 CSCInput =
'simCscTriggerPrimitiveDigis',
304 RPCInput =
'muonRPCDigis' 307 stage2L1Trigger.toModify(process.simCaloStage2Layer1Digis,
308 ecalToken =
"simEcalTriggerPrimitiveDigis",
309 hcalToken =
'simHcalTriggerPrimitiveDigis' 314 process.load(
'L1Trigger.Configuration.SimL1Emulator_cff')
315 process.load(
'L1Trigger.Configuration.CaloTriggerPrimitives_cff')
316 process.simEcalTriggerPrimitiveDigis.Label =
'ecalDigis' 317 process.simHcalTriggerPrimitiveDigis.inputLabel = cms.VInputTag(
318 cms.InputTag(
'hcalDigis'),
319 cms.InputTag(
'hcalDigis')
323 process.load(
'L1Trigger.L1TCommon.muonLegacyInStage2FormatDigis_cfi')
324 process.muonLegacyInStage2FormatDigis.muonSource = cms.InputTag(
'simGmtDigis')
328 process.simDtTriggerPrimitiveDigis = dtTriggerPrimitiveDigis.clone()
329 process.simDtTriggerPrimitiveDigis.digiTag = cms.InputTag(
'muonDTDigis')
333 process.simTwinMuxDigisForDttf = simTwinMuxDigis.clone()
334 process.simTwinMuxDigisForDttf.RPC_Source = cms.InputTag(
'muonRPCDigis')
335 process.simTwinMuxDigisForDttf.DTDigi_Source = cms.InputTag(
'bmtfDigis')
336 process.simTwinMuxDigisForDttf.DTThetaDigi_Source = cms.InputTag(
'bmtfDigis')
340 process.simCscTriggerPrimitiveDigis = cscTriggerPrimitiveDigis.clone()
341 process.simCscTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCComparatorDigi' )
342 process.simCscTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag(
'muonCSCDigis',
'MuonCSCWireDigi' )
347 process.simCsctfTrackDigis = csctfTrackDigis.clone()
348 process.simCsctfTrackDigis.SectorReceiverInput = cms.untracked.InputTag(
'csctfDigis' )
349 process.simCsctfTrackDigis.DTproducer =
'simDtTriggerPrimitiveDigis' 351 process.simCsctfDigis = csctfDigis.clone()
352 process.simCsctfDigis.CSCTrackProducer =
'simCsctfTrackDigis' 357 process.simDttfDigis = dttfDigis.clone()
358 process.simDttfDigis.DTDigi_Source =
'simTwinMuxDigisForDttf' 359 process.simDttfDigis.CSCStub_Source =
'simCsctfTrackDigis' 364 process.load(
'L1Trigger.RPCTrigger.RPCConeConfig_cff')
365 process.simRpcTriggerDigis = rpcTriggerDigis.clone()
366 process.simRpcTriggerDigis.label =
'muonRPCDigis' 367 process.simRpcTriggerDigis.RPCTriggerDebug = cms.untracked.int32(1)
373 process.simGmtDigis = gmtDigis.clone()
374 process.simGmtDigis.DTCandidates = cms.InputTag(
'simDttfDigis',
'DT' )
375 process.simGmtDigis.CSCCandidates = cms.InputTag(
'simCsctfDigis',
'CSC' )
376 process.simGmtDigis.RPCbCandidates = cms.InputTag(
'simRpcTriggerDigis',
'RPCb' )
377 process.simGmtDigis.RPCfCandidates = cms.InputTag(
'simRpcTriggerDigis',
'RPCf' )
383 process.simBmtfDigis.DTDigi_Source = cms.InputTag(
'bmtfDigis')
384 process.simBmtfDigis.DTDigi_Theta_Source = cms.InputTag(
'bmtfDigis')
386 process.simTwinMuxDigis.RPC_Source = cms.InputTag(
'muonRPCDigis')
387 process.simTwinMuxDigis.DTDigi_Source = cms.InputTag(
'bmtfDigis')
388 process.simTwinMuxDigis.DTThetaDigi_Source = cms.InputTag(
'bmtfDigis')
390 process.simOmtfDigis.srcRPC = cms.InputTag(
'muonRPCDigis')
391 process.simOmtfDigis.srcCSC = cms.InputTag(
'csctfDigis')
392 process.simOmtfDigis.srcDTPh = cms.InputTag(
'bmtfDigis')
393 process.simOmtfDigis.srcDTTh = cms.InputTag(
'bmtfDigis')
395 process.simEmtfDigis.CSCInput = cms.InputTag(
'emtfStage2Digis')
396 process.simEmtfDigis.RPCInput = cms.InputTag(
'muonRPCDigis')
398 process.simCaloStage2Layer1Digis.ecalToken = cms.InputTag(
'ecalDigis:EcalTriggerPrimitives')
399 process.simCaloStage2Layer1Digis.hcalToken = cms.InputTag(
'hcalDigis:')
403 process.L1TMuonTriggerPrimitives = cms.Sequence(process.simCscTriggerPrimitiveDigis + process.simDtTriggerPrimitiveDigis + process.simTwinMuxDigisForDttf)
405 process.L1TReEmul = cms.Sequence(process.L1TMuonTriggerPrimitives + process.simCsctfTrackDigis + process.simCsctfDigis + process.simDttfDigis + process.simRpcTriggerDigis + process.simGmtDigis + process.muonLegacyInStage2FormatDigis)
407 process.load(
'L1Trigger.L1TMuon.simMuonQualityAdjusterDigis_cfi')
409 process.L1TReEmul = cms.Sequence( process.L1TReEmul + process.simTwinMuxDigis + process.simBmtfDigis + process.simEmtfDigis + process.simOmtfDigis + process.simGmtCaloSumDigis + process.simMuonQualityAdjusterDigis + process.simGmtStage2Digis)
411 process.L1TReEmul = cms.Sequence( process.L1TReEmul + process.SimL1TechnicalTriggers + process.SimL1TGlobal )
413 process.L1TReEmulPath = cms.Path(process.L1TReEmul)
414 process.schedule.append(process.L1TReEmulPath)
415 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)