Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-16 06:12:40

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #-------------------------------------------------
0004 # Stage2 Emulator Modules (TODO: Move to L1Trigger.HardwareValidation.L1Stage2HardwareValidation_cff)
0005 
0006 # Calo configuration
0007 from L1Trigger.L1TCalorimeter.simDigis_cff import *
0008 # CaloLayer1
0009 from L1Trigger.L1TCaloLayer1.simCaloStage2Layer1Digis_cfi import simCaloStage2Layer1Digis
0010 valCaloStage2Layer1Digis = simCaloStage2Layer1Digis.clone(
0011     ecalToken = "caloLayer1Digis",
0012     hcalToken = "caloLayer1Digis",
0013     unpackEcalMask = True,
0014     unpackHcalMask = True
0015 )
0016 
0017 # CaloLayer2
0018 from L1Trigger.L1TCalorimeter.simCaloStage2Digis_cfi import simCaloStage2Digis
0019 valCaloStage2Layer2Digis = simCaloStage2Digis.clone(towerToken = "caloStage2Digis:CaloTower")
0020 
0021 # BMTF-Legacy
0022 from L1Trigger.L1TMuonBarrel.simBmtfDigis_cfi import *
0023 valBmtfDigis = simBmtfDigis.clone(
0024     DTDigi_Source = "bmtfDigis",
0025     DTDigi_Theta_Source = "bmtfDigis"
0026 )
0027 
0028 # BMTF-Kalman
0029 from L1Trigger.L1TMuonBarrel.simKBmtfDigis_cfi import *
0030 from L1Trigger.L1TMuonBarrel.simKBmtfStubs_cfi import *
0031 valKBmtfStubs = simKBmtfStubs.clone(
0032     srcPhi = "bmtfDigis",
0033     srcTheta = "bmtfDigis"
0034 )
0035 valKBmtfDigis = simKBmtfDigis.clone(src = "valKBmtfStubs")
0036 
0037 # BMTF-AlgoTriggerSelector
0038 from DQM.L1TMonitor.L1TBMTFAlgoSelector_cfi import *
0039 valBmtfAlgoSel = l1tBmtfAlgoSelector.clone(
0040     bmtfKalman = "valKBmtfDigis:BMTF",
0041     bmtfLegacy = "valBmtfDigis:BMTF"
0042 )
0043 
0044 # OMTF
0045 from L1Trigger.L1TMuonOverlapPhase1.simOmtfDigis_cfi import *
0046 valOmtfDigis = simOmtfDigis.clone(
0047     srcDTPh = "omtfStage2Digis",
0048     srcDTTh = "omtfStage2Digis",
0049     srcCSC = "omtfStage2Digis",
0050     srcRPC = "omtfStage2Digis",
0051     bxMin = -3,
0052     bxMax = 4
0053 )
0054 
0055 # GEM TPG
0056 from L1Trigger.L1TGEM.simGEMDigis_cff import *
0057 valMuonGEMPadDigis = simMuonGEMPadDigis.clone(InputCollection = "muonGEMDigis")
0058 valMuonGEMPadDigiClusters = simMuonGEMPadDigiClusters.clone(InputCollection = "valMuonGEMPadDigis")
0059 
0060 # Lookup tables for the CSC TP emulator
0061 from CalibMuon.CSCCalibration.CSCL1TPLookupTableEP_cff import *
0062 # CSC TPG
0063 from L1Trigger.CSCTriggerPrimitives.cscTriggerPrimitiveDigis_cfi import *
0064 valCscStage2Digis = cscTriggerPrimitiveDigis.clone(
0065     CSCComparatorDigiProducer = "muonCSCDigis:MuonCSCComparatorDigi",
0066     CSCWireDigiProducer = "muonCSCDigis:MuonCSCWireDigi",
0067     GEMPadDigiClusterProducer = "",
0068     commonParam = dict(runME11ILT = False)
0069 )
0070 
0071 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0072 run3_GEM.toModify( valCscStage2Digis, GEMPadDigiClusterProducer = "valMuonGEMPadDigiClusters" )
0073 
0074 # EMTF
0075 from L1Trigger.L1TMuonEndCap.simEmtfDigis_cfi import *
0076 valEmtfStage2Digis = simEmtfDigis.clone(
0077     CSCInput = "emtfStage2Digis",
0078     RPCInput = "muonRPCDigis",
0079     GEMInput = 'valMuonGEMPadDigiClusters'
0080 )
0081 # EMTF shower
0082 from L1Trigger.L1TMuonEndCap.simEmtfShowers_cfi import *
0083 valEmtfStage2Showers = simEmtfShowers.clone(
0084     CSCShowerInput = cms.InputTag('valCscStage2Digis')
0085 )
0086 
0087 # uGMT
0088 from L1Trigger.L1TMuon.simGmtStage2Digis_cfi import *
0089 valGmtCaloSumDigis = simGmtCaloSumDigis.clone(caloStage2Layer2Label = "valCaloStage2Layer1Digis")
0090 valGmtStage2Digis = simGmtStage2Digis.clone(
0091     barrelTFInput = "gmtStage2Digis:BMTF",
0092     overlapTFInput = "gmtStage2Digis:OMTF",
0093     forwardTFInput = "gmtStage2Digis:EMTF",
0094     triggerTowerInput = "valGmtCaloSumDigis:TriggerTowerSums"
0095 )
0096 
0097 # uGMT shower
0098 valGmtShowerDigis = simGmtShowerDigis.clone(
0099     showerInput = "gmtStage2Digis:EMTF"
0100 )
0101 
0102 # uGT
0103 from L1Trigger.L1TGlobal.simGtStage2Digis_cfi import simGtStage2Digis
0104 from L1Trigger.L1TGlobal.simGtExtFakeProd_cfi import simGtExtFakeProd
0105 
0106 valGtStage2Digis = simGtStage2Digis.clone(
0107     ExtInputTag = "gtStage2Digis",
0108     MuonInputTag = "gtStage2Digis:Muon",
0109     EGammaInputTag = "gtStage2Digis:EGamma",
0110     TauInputTag = "gtStage2Digis:Tau",
0111     JetInputTag = "gtStage2Digis:Jet",
0112     EtSumInputTag = "gtStage2Digis:EtSum",
0113     AlgorithmTriggersUnmasked = False,
0114     AlgorithmTriggersUnprescaled = False,
0115     EmulateBxInEvent = cms.int32(5),
0116     PrescaleSet = cms.uint32(7),
0117     GetPrescaleColumnFromData = True,
0118     AlgoBlkInputTag = "gtStage2Digis"
0119 )
0120 Stage2L1HardwareValidation = cms.Sequence(
0121     valCaloStage2Layer1Digis +
0122     valCscStage2Digis +
0123     valBmtfDigis +
0124     valKBmtfStubs +
0125     valKBmtfDigis +
0126     valBmtfAlgoSel +
0127     valOmtfDigis +
0128     valEmtfStage2Digis +
0129     valGmtCaloSumDigis +
0130     valGmtStage2Digis +
0131     valGtStage2Digis
0132 )
0133 
0134 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0135 _run3_Stage2L1HardwareValidation = Stage2L1HardwareValidation.copy()
0136 run3_GEM.toReplaceWith( Stage2L1HardwareValidation, cms.Sequence( valMuonGEMPadDigis + valMuonGEMPadDigiClusters + _run3_Stage2L1HardwareValidation) )
0137 
0138 _run3Shower_Stage2L1HardwareValidation = Stage2L1HardwareValidation.copy()
0139 run3_GEM.toReplaceWith( Stage2L1HardwareValidation, cms.Sequence(_run3Shower_Stage2L1HardwareValidation + valEmtfStage2Showers + valGmtShowerDigis) )
0140 
0141 Stage2L1HardwareValidationForValidationEvents = cms.Sequence(
0142     valCaloStage2Layer2Digis
0143 )
0144 
0145 #-------------------------------------------------
0146 # Emulator DQM Modules
0147 
0148 # CaloLayer1
0149 from DQM.L1TMonitor.L1TdeStage2CaloLayer1_cfi import *
0150 
0151 # CaloLayer2
0152 from DQM.L1TMonitor.L1TdeStage2CaloLayer2_cfi import *
0153 from DQM.L1TMonitor.L1TStage2CaloLayer2Emul_cfi import *
0154 
0155 # GEM TPG
0156 from DQM.L1TMonitor.L1TdeGEMTPG_cfi import *
0157 
0158 # CSC TPG
0159 from DQM.L1TMonitor.L1TdeCSCTPG_cfi import *
0160 from DQM.L1TMonitor.L1TdeCSCTPGShower_cfi import *
0161 
0162 # BMTF
0163 from DQM.L1TMonitor.L1TdeStage2BMTF_cfi import *
0164 from DQM.L1TMonitor.L1TdeStage2BMTFSecond_cff import *
0165 
0166 # OMTF
0167 from DQM.L1TMonitor.L1TdeStage2OMTF_cfi import *
0168 
0169 # EMTF
0170 from DQM.L1TMonitor.L1TdeStage2EMTF_cff import *
0171 
0172 # uGMT
0173 from DQM.L1TMonitor.L1TdeStage2uGMT_cff import *
0174 
0175 # uGT
0176 from DQM.L1TMonitor.L1TStage2uGTEmul_cfi import *
0177 from DQM.L1TMonitor.L1TdeStage2uGT_cfi import *
0178 
0179 #-------------------------------------------------
0180 # Stage2 Emulator and Emulator DQM Sequences
0181 
0182 # sequence to run for every event
0183 l1tStage2EmulatorOnlineDQM = cms.Sequence(
0184     l1tdeStage2Bmtf +
0185     l1tdeStage2BmtfSecond +
0186     l1tdeStage2Omtf +
0187     l1tdeCSCTPG +
0188     l1tdeStage2EmtfOnlineDQMSeq +
0189     l1tStage2uGMTEmulatorOnlineDQMSeq +
0190     l1tdeStage2uGT +
0191     l1tStage2uGtEmul
0192 )
0193 
0194 _run3_l1tStage2EmulatorOnlineDQM = l1tStage2EmulatorOnlineDQM.copy()
0195 _run3_l1tStage2EmulatorOnlineDQM += l1tdeGEMTPG
0196 
0197 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
0198 run3_GEM.toReplaceWith( l1tStage2EmulatorOnlineDQM, _run3_l1tStage2EmulatorOnlineDQM )
0199 
0200 _run3shower_l1tStage2EmulatorOnlineDQM = l1tStage2EmulatorOnlineDQM.copy()
0201 run3_GEM.toReplaceWith( l1tStage2EmulatorOnlineDQM, cms.Sequence(_run3shower_l1tStage2EmulatorOnlineDQM + l1tdeCSCTPGShower) )
0202 
0203 # sequence to run only for validation events
0204 l1tStage2EmulatorOnlineDQMValidationEvents = cms.Sequence(
0205     l1tdeStage2CaloLayer1 +
0206     l1tdeStage2CaloLayer2 +
0207     l1tStage2CaloLayer2Emul
0208 )