Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:48

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import os
0004 
0005 simGmtCaloSumDigis = cms.EDProducer('L1TMuonCaloSumProducer',
0006     caloStage2Layer2Label = cms.InputTag("simCaloStage2Layer1Digis"),
0007 )
0008 
0009 simGmtStage2Digis = cms.EDProducer('L1TMuonProducer',
0010     barrelTFInput  = cms.InputTag("simKBmtfDigis", "BMTF"),
0011     overlapTFInput = cms.InputTag("simOmtfDigis", "OMTF"),
0012     forwardTFInput = cms.InputTag("simEmtfDigis", "EMTF"),
0013     #triggerTowerInput = cms.InputTag("simGmtCaloSumDigis", "TriggerTower2x2s"),
0014     triggerTowerInput = cms.InputTag("simGmtCaloSumDigis", "TriggerTowerSums"),
0015     autoBxRange = cms.bool(True), # if True the output BX range is calculated from the inputs and 'bxMin' and 'bxMax' are ignored
0016     bxMin = cms.int32(-2),
0017     bxMax = cms.int32(2),
0018     autoCancelMode = cms.bool(True), # if True the cancel out methods are configured depending on the FW version number and 'bmtfCancelMode' + 'emtfCancelMode' are ignored
0019     bmtfCancelMode = cms.string("kftracks"), # 'tracks' or 'kftracks' (when using the Run-3 BMTF)
0020     emtfCancelMode = cms.string("coordinate") # 'tracks' or 'coordinate'
0021 )
0022 
0023 # Muon shower trigger
0024 from L1Trigger.L1TMuon.simGmtShowerDigisDef_cfi import simGmtShowerDigisDef
0025 simGmtShowerDigis = simGmtShowerDigisDef.clone()
0026 
0027 from CondCore.CondDB.CondDB_cfi import CondDB
0028 CondDB.connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS")
0029 l1ugmtdb = cms.ESSource("PoolDBESSource",
0030        CondDB,
0031        toGet   = cms.VPSet(
0032             cms.PSet(
0033                  record = cms.string('L1TMuonGlobalParamsO2ORcd'),
0034                  tag = cms.string("L1TMuonGlobalParamsPrototype_Stage2v0_hlt")
0035             )
0036        )
0037 )
0038 
0039 ## Era: Run2_2016
0040 from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
0041 stage2L1Trigger.toModify(simGmtStage2Digis, barrelTFInput = cms.InputTag("simBmtfDigis", "BMTF"),
0042                                             autoCancelMode = cms.bool(False),
0043                                             bmtfCancelMode = cms.string("tracks"),
0044                                             emtfCancelMode = cms.string("coordinate"))
0045 
0046 ## Era: Run2_2017
0047 from Configuration.Eras.Modifier_stage2L1Trigger_2017_cff import stage2L1Trigger_2017
0048 stage2L1Trigger_2017.toModify(simGmtStage2Digis, barrelTFInput = cms.InputTag("simBmtfDigis", "BMTF"),
0049                                                  autoCancelMode = cms.bool(False),
0050                                                  bmtfCancelMode = cms.string("tracks"),
0051                                                  emtfCancelMode = cms.string("coordinate"))
0052 
0053 ### Era: Run2_2018
0054 from Configuration.Eras.Modifier_stage2L1Trigger_2018_cff import stage2L1Trigger_2018
0055 stage2L1Trigger_2018.toModify(simGmtStage2Digis, barrelTFInput = cms.InputTag("simBmtfDigis", "BMTF"),
0056                                                  autoCancelMode = cms.bool(False),
0057                                                  bmtfCancelMode = cms.string("tracks"),
0058                                                  emtfCancelMode = cms.string("coordinate"))
0059 
0060 ### Era: Run3_2021
0061 from Configuration.Eras.Modifier_stage2L1Trigger_2021_cff import stage2L1Trigger_2021
0062 stage2L1Trigger_2021.toModify(simGmtStage2Digis, barrelTFInput = cms.InputTag("simKBmtfDigis", "BMTF"),
0063                                                  autoCancelMode = cms.bool(False),
0064                                                  bmtfCancelMode = cms.string("kftracks"),
0065                                                  emtfCancelMode = cms.string("coordinate"))