Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-10 02:51:13

0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003 #
0004 # Legacy L1 Muon modules still running in 2016 trigger:
0005 #
0006 
0007 #  - DT TP emulator
0008 from L1Trigger.DTTrigger.dtTriggerPrimitiveDigis_cfi import *
0009 import L1Trigger.DTTrigger.dtTriggerPrimitiveDigis_cfi
0010 simDtTriggerPrimitiveDigis = L1Trigger.DTTrigger.dtTriggerPrimitiveDigis_cfi.dtTriggerPrimitiveDigis.clone(
0011     digiTag = 'simMuonDTDigis'
0012 )
0013 #simDtTriggerPrimitiveDigis.debug = cms.untracked.bool(True)
0014 
0015 # Lookup tables for the CSC TP emulator
0016 from CalibMuon.CSCCalibration.CSCL1TPLookupTableEP_cff import *
0017 # - CSC TP emulator
0018 import L1Trigger.CSCTriggerPrimitives.cscTriggerPrimitiveDigis_cfi
0019 simCscTriggerPrimitiveDigis = L1Trigger.CSCTriggerPrimitives.cscTriggerPrimitiveDigis_cfi.cscTriggerPrimitiveDigis.clone(
0020     CSCComparatorDigiProducer = 'simMuonCSCDigis:MuonCSCComparatorDigi',
0021     CSCWireDigiProducer       = 'simMuonCSCDigis:MuonCSCWireDigi'
0022 )
0023 # For Run-3: turn on CCLUT in the MEX/1 chambers
0024 simCscTriggerPrimitiveDigisRun3 = simCscTriggerPrimitiveDigis.clone()
0025 simCscTriggerPrimitiveDigisRun3.commonParam.runCCLUT_OTMB = True
0026 
0027 # For Phase-2: turn on CCLUT in the ME1/3 and MEX/2 chambers
0028 simCscTriggerPrimitiveDigisPhase2 = simCscTriggerPrimitiveDigisRun3.clone()
0029 simCscTriggerPrimitiveDigisPhase2.commonParam.runCCLUT_TMB = True
0030 
0031 SimL1TMuonCommonTask = cms.Task(simDtTriggerPrimitiveDigis, simCscTriggerPrimitiveDigis)
0032 SimL1TMuonCommon = cms.Sequence(SimL1TMuonCommonTask)
0033 
0034 #
0035 # Legacy Trigger:
0036 #
0037 #
0038 # - CSC Track Finder emulator
0039 #
0040 import L1Trigger.CSCTrackFinder.csctfTrackDigis_cfi
0041 simCsctfTrackDigis = L1Trigger.CSCTrackFinder.csctfTrackDigis_cfi.csctfTrackDigis.clone(
0042     SectorReceiverInput = 'simCscTriggerPrimitiveDigis:MPCSORTED',
0043     DTproducer = 'simDtTriggerPrimitiveDigis'
0044 )
0045 import L1Trigger.CSCTrackFinder.csctfDigis_cfi
0046 simCsctfDigis = L1Trigger.CSCTrackFinder.csctfDigis_cfi.csctfDigis.clone(
0047     CSCTrackProducer = 'simCsctfTrackDigis'
0048 )
0049 #
0050 # - DT Track Finder emulator
0051 #
0052 import L1Trigger.DTTrackFinder.dttfDigis_cfi
0053 simDttfDigis = L1Trigger.DTTrackFinder.dttfDigis_cfi.dttfDigis.clone(
0054     DTDigi_Source  = 'simDtTriggerPrimitiveDigis',
0055     CSCStub_Source = 'simCsctfTrackDigis'
0056 )
0057 #
0058 # - RPC PAC Trigger emulator
0059 #
0060 from L1Trigger.RPCTrigger.rpcTriggerDigis_cff import *
0061 simRpcTriggerDigis = L1Trigger.RPCTrigger.rpcTriggerDigis_cff.rpcTriggerDigis.clone(
0062     label = 'simMuonRPCDigis'
0063 )
0064 #
0065 # - Global Muon Trigger emulator
0066 #
0067 import L1Trigger.GlobalMuonTrigger.gmtDigis_cfi
0068 simGmtDigis = L1Trigger.GlobalMuonTrigger.gmtDigis_cfi.gmtDigis.clone(
0069     DTCandidates   = 'simDttfDigis:DT',
0070     CSCCandidates  = 'simCsctfDigis:CSC',
0071     RPCbCandidates = 'simRpcTriggerDigis:RPCb',
0072     RPCfCandidates = 'simRpcTriggerDigis:RPCf',
0073 #   Note: GMT requires input from calorimeter emulators, namely MipIsoData from GCT
0074     MipIsoData     = 'simRctDigis'
0075 )
0076 #
0077 #
0078 SimL1TMuonTask = cms.Task(SimL1TMuonCommonTask, simCsctfTrackDigis, simCsctfDigis, simDttfDigis, simRpcTriggerDigis, simGmtDigis)
0079 SimL1TMuon = cms.Sequence(SimL1TMuonTask)
0080 
0081 #
0082 # Stage-2 Trigger
0083 #
0084 from L1Trigger.L1TTwinMux.simTwinMuxDigis_cfi import *
0085 from L1Trigger.L1TMuonBarrel.simBmtfDigis_cfi import *
0086 from L1Trigger.L1TMuonBarrel.simKBmtfStubs_cfi import *
0087 from L1Trigger.L1TMuonBarrel.simKBmtfDigis_cfi import *
0088 from L1Trigger.L1TMuonEndCap.simEmtfDigis_cfi import *
0089 from L1Trigger.L1TMuonEndCap.simEmtfShowers_cfi import *
0090 from L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi import *
0091 from L1Trigger.L1TMuon.simGmtCaloSumDigis_cfi import *
0092 from L1Trigger.L1TMuon.simGmtStage2Digis_cfi import *
0093 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
0094 #
0095 #
0096 stage2L1Trigger.toReplaceWith(SimL1TMuonTask, cms.Task(SimL1TMuonCommonTask, simTwinMuxDigis, simBmtfDigis, simKBmtfStubs, simKBmtfDigis, simEmtfDigis, simOmtfDigis, simGmtCaloSumDigis, simGmtStage2Digis))
0097 
0098 ## hadronic shower trigger for Run-3
0099 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0100 _run3_Shower_SimL1TMuonTask = SimL1TMuonTask.copy()
0101 _run3_Shower_SimL1TMuonTask.add(simEmtfShowers)
0102 _run3_Shower_SimL1TMuonTask.add(simGmtShowerDigis)
0103 (stage2L1Trigger & run3_common).toReplaceWith( SimL1TMuonTask, _run3_Shower_SimL1TMuonTask )
0104 
0105 #
0106 # Phase-2 Trigger
0107 #
0108 from L1Trigger.L1TMuonBarrel.simKBmtfStubs_cfi import *
0109 from L1Trigger.L1TMuonBarrel.simKBmtfDigis_cfi import *
0110 from Configuration.Eras.Modifier_phase2_trigger_cff import phase2_trigger
0111 phase2_trigger.toReplaceWith(SimL1TMuonTask, cms.Task(SimL1TMuonCommonTask, simTwinMuxDigis, simBmtfDigis, simKBmtfStubs, simKBmtfDigis, simEmtfDigis, simOmtfDigis, simGmtCaloSumDigis, simGmtStage2Digis, simEmtfShowers, simGmtShowerDigis))
0112 
0113 ## GEM TPs
0114 from L1Trigger.L1TGEM.simGEMDigis_cff import *
0115 _run3_SimL1TMuonTask = SimL1TMuonTask.copy()
0116 _run3_SimL1TMuonTask.add(simCscTriggerPrimitiveDigisRun3)
0117 
0118 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0119 (stage2L1Trigger & run3_GEM).toReplaceWith( SimL1TMuonTask, cms.Task(simMuonGEMPadTask,_run3_SimL1TMuonTask) )
0120 
0121 ## ME0 TPs
0122 from L1Trigger.L1TGEM.me0TriggerDigis_cff import *
0123 _phase2_SimL1TMuonTask = SimL1TMuonTask.copy()
0124 _phase2_SimL1TMuonTask.add(me0TriggerAllDigiTask)
0125 _phase2_SimL1TMuonTask.add(simCscTriggerPrimitiveDigisPhase2)
0126 _phase2_GE0_SimL1TMuonTask = SimL1TMuonTask.copyAndExclude([me0TriggerAllDigiTask])
0127 
0128 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
0129 (stage2L1Trigger & phase2_muon).toReplaceWith( SimL1TMuonTask, _phase2_SimL1TMuonTask )
0130 
0131 from Configuration.Eras.Modifier_phase2_GE0_cff import phase2_GE0
0132 (stage2L1Trigger & phase2_GE0).toReplaceWith( SimL1TMuonTask, _phase2_GE0_SimL1TMuonTask )