![]() |
|
|||
File indexing completed on 2023-03-17 11:12:32
0001 # This can be used to generate uGMT LUTs from parameters in the fakeGmtParams_cff.py file 0002 # or dump LUTs from the conditions DB when given a record+tag+(optional)snapshotTime combination 0003 # The LUTs are dumped as .txt files in the lut_dump directory, which needs to be created before running. 0004 0005 import FWCore.ParameterSet.Config as cms 0006 0007 process = cms.Process("L1MicroGMTEmulator") 0008 0009 process.load("FWCore.MessageService.MessageLogger_cfi") 0010 0011 0012 process.source = cms.Source("EmptySource") 0013 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1)) 0014 0015 ## use this to produce LUTs from the config parameters in fakeGmtParams_cff 0016 process.load('L1Trigger.L1TMuon.fakeGmtParams_cff') 0017 0018 ## use this to extract LUTs from the CondDB record + tag + snapshotTime(optional) 0019 #from CondCore.CondDB.CondDB_cfi import CondDB 0020 #CondDB.connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS") 0021 #process.l1ugmtdb = cms.ESSource("PoolDBESSource", 0022 # CondDB, 0023 # toGet = cms.VPSet( 0024 # cms.PSet( 0025 # record = cms.string('L1TMuonGlobalParamsRcd'), 0026 # tag = cms.string("L1TMuonGlobalParams_Stage2v0_hlt"), 0027 # #tag = cms.string("L1TMuonGlobalParams_static_v91.12"), 0028 # #tag = cms.string("L1TMuonGlobalParams_static_v94.6.1"), 0029 # #tag = cms.string("L1TMuonGlobalParams_Stage2v0_2018_mc"), 0030 # #snapshotTime = cms.string("2017-09-20 23:59:59.000") 0031 # ) 0032 # ) 0033 #) 0034 0035 process.dumper = cms.EDAnalyzer("L1TMicroGMTLUTDumper", 0036 out_directory = cms.string("lut_dump"), 0037 ) 0038 0039 process.dumpPath = cms.Path( process.dumper ) 0040 process.schedule = cms.Schedule(process.dumpPath)
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.2.1 LXR engine. The LXR team |
![]() ![]() |