Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:30:19

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # LUT generator process
0004 process = cms.Process("LUTgen")
0005 
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0008 process.MessageLogger.cout.threshold = cms.untracked.string('INFO')
0009 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0010 
0011 # just run once
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(1)
0014     )
0015 
0016 process.source = cms.Source('EmptySource')
0017 
0018 # load and configure modules via Global Tag
0019 # https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
0020 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0021  
0022 process.GlobalTag.globaltag = 'GR_R_50_V11::All'
0023 #process.GlobalTag.globaltag = 'GR_R_42_V18::All'
0024 
0025 ######################
0026 # GMT emulator setup #
0027 ######################
0028 
0029 # load external parameter data (TODO: Get this from DB as well)
0030 process.load("L1TriggerConfig.L1GeometryProducers.l1CaloGeometry_cfi")
0031 process.load("L1TriggerConfig.L1GeometryProducers.l1CaloGeomRecordSource_cff")
0032 
0033 # load the GMT simulator 
0034 process.load("L1Trigger.GlobalMuonTrigger.gmtDigis_cfi")
0035 
0036 # Clear event data
0037 process.gmtDigis.DTCandidates = cms.InputTag("none", "")
0038 process.gmtDigis.CSCCandidates = cms.InputTag("none", "")
0039 process.gmtDigis.RPCbCandidates = cms.InputTag("none", "")
0040 process.gmtDigis.RPCfCandidates = cms.InputTag("none", "")
0041 
0042 # GMT emulator debugging
0043 process.gmtDigis.Debug = cms.untracked.int32(9)
0044 
0045 process.load('L1TriggerConfig.GMTConfigProducers.L1MuGMTParameters_cfi')
0046 process.L1MuGMTParameters.MergeMethodPtBrl=cms.string("byRank")
0047 process.L1MuGMTParameters.MergeMethodPtFwd=cms.string("byRank")
0048 process.L1MuGMTParameters.VersionSortRankEtaQLUT = cms.uint32(275)
0049 
0050 # Tell the emulator to generate LUTs
0051 process.gmtDigis.WriteLUTsAndRegs = cms.untracked.bool(True)
0052 
0053 # And run!
0054 process.path = cms.Path(process.gmtDigis)
0055