Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:22:17

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("GMTPATT")
0004 
0005 process.maxEvents = cms.untracked.PSet(
0006     input = cms.untracked.int32(-1)
0007 )
0008 
0009 # Message Logger
0010 process.MessageLogger = cms.Service("MessageLogger",
0011     cerr = cms.untracked.PSet(
0012         enable = cms.untracked.bool(False)
0013     ),
0014     cout = cms.untracked.PSet(
0015         enable = cms.untracked.bool(True)
0016     ),
0017     default = cms.untracked.PSet(
0018         limit = cms.untracked.int32(0)
0019     )
0020 )
0021     
0022 process.source = cms.Source("L1MuGMTHWFileReader",
0023     fileNames = cms.untracked.vstring("file:gmt_testfile.h4mu.1000.dat")
0024 )
0025 process.gmtPattern = cms.EDAnalyzer("L1MuGMTPattern",
0026     GMTInputTag = cms.untracked.InputTag("gmtDigis"),
0027     OutputFile = cms.untracked.string("gmt_testfile.dat"),
0028     OutputType = cms.untracked.int32(1)
0029 )
0030 
0031 # load and configure modules via Global Tag
0032 # https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions
0033 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0034  
0035 process.GlobalTag.globaltag = 'START42_V13::All'
0036 #process.GlobalTag.globaltag = 'GR_R_42_V13::All'
0037 
0038 ######################
0039 # GMT emulator setup #
0040 ######################
0041 
0042 # load external parameter data (TODO: Get this from DB as well)
0043 process.load("L1TriggerConfig.L1GeometryProducers.l1CaloGeometry_cfi")
0044 process.load("L1TriggerConfig.L1GeometryProducers.l1CaloGeomRecordSource_cff")
0045 
0046 # load the GMT simulator 
0047 process.load("L1Trigger.GlobalMuonTrigger.gmtDigis_cfi")
0048 
0049 process.gmtDigis.DTCandidates = "source:DT"
0050 process.gmtDigis.CSCCandidates = 'source:CSC'
0051 process.gmtDigis.RPCbCandidates = 'source:RPCb'
0052 process.gmtDigis.RPCfCandidates = 'source:RPCf'
0053 process.gmtDigis.MipIsoData = 'source'
0054 process.gmtDigis.Debug = 0
0055 process.gmtDigis.BX_min = -1
0056 process.gmtDigis.BX_max = 1
0057 process.gmtDigis.BX_min_readout = -1
0058 process.gmtDigis.BX_max_readout = 1
0059 process.gmtDigis.SendMipIso = cms.untracked.bool(True)
0060 
0061 #process.L1MuGMTParameters.SubsystemMask = 0
0062 
0063 process.load('L1TriggerConfig.GMTConfigProducers.L1MuGMTParameters_cfi')
0064 process.L1MuGMTParameters.MergeMethodPtBrl=cms.string("byRank")
0065 process.L1MuGMTParameters.MergeMethodPtFwd=cms.string("byRank")
0066 process.L1MuGMTParameters.VersionSortRankEtaQLUT = cms.uint32(275)
0067 
0068 process.p = cms.Path(process.gmtDigis * process.gmtPattern)