File indexing completed on 2024-04-06 12:20:23
0001
0002
0003
0004 import FWCore.ParameterSet.Config as cms
0005 import os
0006
0007
0008
0009 def customiseL1EmulatorFromRaw(process):
0010
0011
0012
0013
0014
0015
0016
0017
0018 process.load('L1Trigger.L1TCalorimeter.L1TCaloStage1_PPFromRaw_cff')
0019
0020
0021 from L1Trigger.DTTrackFinder.dttfDigis_cfi import dttfDigis
0022 process.dttfReEmulDigis = dttfDigis.clone()
0023 process.dttfReEmulDigis.DTDigi_Source = cms.InputTag("dttfDigis")
0024 process.dttfReEmulDigis.CSCStub_Source = cms.InputTag("csctfReEmulTrackDigis")
0025
0026 from L1Trigger.RPCTrigger.rpcTriggerDigis_cfi import rpcTriggerDigis
0027 process.rpcTriggerReEmulDigis = rpcTriggerDigis.clone()
0028
0029 process.load("L1TriggerConfig.RPCTriggerConfig.RPCConeDefinition_cff")
0030 process.load("L1Trigger.RPCTrigger.RPCConeConfig_cff")
0031
0032 from SLHCUpgradeSimulations.Configuration.muonCustoms import customise_csc_L1Emulator_sim
0033 from L1Trigger.CSCTrackFinder.csctfDigis_cfi import csctfDigis
0034 customise_csc_L1Emulator_sim(process)
0035
0036 process.csctfReEmulTrackDigis = process.simCsctfTrackDigis.clone()
0037 process.csctfReEmulDigis = csctfDigis.clone()
0038
0039 process.csctfReEmulTrackDigis.DTproducer = cms.untracked.InputTag("dttfDigis")
0040 process.csctfReEmulDigis.CSCTrackProducer = cms.untracked.InputTag("csctfReEmulTrackDigis")
0041
0042 process.csctfReEmulTrackDigis.SectorProcessor.PTLUT.PtMethod = cms.untracked.uint32(34)
0043 process.csctfReEmulTrackDigis.SectorProcessor.gangedME1a = cms.untracked.bool(False)
0044 process.csctfReEmulTrackDigis.SectorProcessor.firmwareSP = cms.uint32(20140515)
0045 process.csctfReEmulTrackDigis.SectorProcessor.initializeFromPSet = cms.bool(True)
0046 process.csctfReEmulTrackDigis.SectorReceiverInput = cms.untracked.InputTag("cscReEmulTriggerPrimitiveDigis","MPCSORTED")
0047
0048 process.cscReEmulTriggerPrimitiveDigis = process.simCscTriggerPrimitiveDigis.clone()
0049 process.cscReEmulTriggerPrimitiveDigis.CSCComparatorDigiProducer = cms.InputTag("muonCSCDigis","MuonCSCComparatorDigi")
0050 process.cscReEmulTriggerPrimitiveDigis.CSCWireDigiProducer = cms.InputTag("muonCSCDigis","MuonCSCWireDigi")
0051
0052 process.csctfReEmulSequence = cms.Sequence(
0053 process.cscReEmulTriggerPrimitiveDigis
0054 * process.csctfReEmulTrackDigis
0055 * process.csctfReEmulDigis
0056 )
0057
0058 from L1Trigger.GlobalMuonTrigger.gmtDigis_cfi import gmtDigis
0059 process.gmtReEmulDigis = gmtDigis.clone()
0060
0061 process.gmtReEmulDigis.DTCandidates = cms.InputTag("dttfReEmulDigis","DT")
0062 process.gmtReEmulDigis.CSCCandidates = cms.InputTag("csctfReEmulDigis","CSC")
0063 process.gmtReEmulDigis.RPCbCandidates = cms.InputTag("rpcTriggerReEmulDigis","RPCb")
0064 process.gmtReEmulDigis.RPCfCandidates = cms.InputTag("rpcTriggerReEmulDigis","RPCf")
0065 process.gmtReEmulDigis.MipIsoData = cms.InputTag("none")
0066
0067 process.load('L1TriggerConfig.GMTConfigProducers.L1MuGMTParameters_cfi')
0068 process.L1MuGMTParameters.MergeMethodPtBrl=cms.string("byMinPt")
0069 process.L1MuGMTParameters.MergeMethodPtFwd=cms.string("byMinPt")
0070 process.L1MuGMTParameters.VersionSortRankEtaQLUT = cms.uint32(275)
0071 process.L1MuGMTParameters.VersionLUTs = cms.uint32(1)
0072 process.es_prefer_gmtConfig = cms.ESPrefer("L1MuGMTParametersProducer","L1MuGMTParameters")
0073
0074 process.reEmulMuonChain = cms.Sequence(
0075 process.rpcTriggerReEmulDigis
0076 *process.csctfReEmulSequence
0077 *process.dttfReEmulDigis
0078 *process.gmtReEmulDigis
0079 )
0080
0081
0082
0083
0084
0085
0086
0087
0088
0089
0090
0091
0092
0093
0094
0095
0096
0097
0098
0099
0100
0101
0102
0103
0104
0105
0106
0107
0108
0109
0110 from L1Trigger.Configuration.SimL1Emulator_cff import simGtDigis
0111 simGtDigis.GmtInputTag = 'gmtReEmulDigis'
0112 simGtDigis.GctInputTag = 'simCaloStage1LegacyFormatDigis'
0113 simGtDigis.TechnicalTriggersInputTags = cms.VInputTag( )
0114
0115
0116 SimL1Emulator = cms.Sequence(
0117
0118 process.L1TCaloStage1_PPFromRaw +
0119 process.reEmulMuonChain +
0120 process.simGtDigis )
0121
0122
0123 for iterable in process.sequences.values():
0124 iterable.replace( process.SimL1Emulator, SimL1Emulator)
0125 for iterable in process.paths.values():
0126 iterable.replace( process.SimL1Emulator, SimL1Emulator)
0127 for iterable in process.endpaths.values():
0128 iterable.replace( process.SimL1Emulator, SimL1Emulator)
0129 process.SimL1Emulator = SimL1Emulator
0130
0131 return process
0132
0133