Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:18

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("L1ConfigWritePayloadDummy")
0004 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0005 process.MessageLogger.cout.enable = cms.untracked.bool(True)
0006 process.MessageLogger.cout.threshold = cms.untracked.string('DEBUG')
0007 process.MessageLogger.debugModules = cms.untracked.vstring('*')
0008 
0009 process.source = cms.Source("EmptySource")
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0011 
0012 # Generate dummy L1TriggerKeyList
0013 process.load("CondTools.L1Trigger.L1TriggerKeyListDummy_cff")
0014 process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
0015 process.L1TriggerKeyDummy.objectKeys = cms.VPSet(cms.PSet(
0016     record = cms.string("L1TUtmTriggerMenuRcd"),
0017     type   = cms.string("L1TUtmTriggerMenu"),
0018     key    = cms.string("dummy")
0019 ))
0020 
0021 
0022 ############ this block replaces one of the records in Global Tag ##############
0023 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0024 from Configuration.AlCa.GlobalTag import GlobalTag
0025 process.GlobalTag = GlobalTag(process.GlobalTag, '80X_mcRun2cosmics_startup_peak_v1', '')
0026 process.GlobalTag.snapshotTime = cms.string("9999-12-31 23:59:59.000")
0027 
0028 process.GlobalTag.toGet = cms.VPSet(
0029  cms.PSet(
0030            record  = cms.string("L1TUtmTriggerMenuRcd"),
0031            tag     = cms.string("L1Menu_Collisions2015_25nsStage1_v7_uGT_xml"),
0032          )
0033 )
0034 ################################################################################
0035 
0036 
0037 
0038 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0039    toGet = cms.VPSet(
0040        cms.PSet(
0041            record = cms.string('L1TUtmTriggerMenuRcd'),
0042            data   = cms.vstring('L1TUtmTriggerMenu')
0043        )
0044    ),
0045    verbose = cms.untracked.bool(True)
0046 )
0047 
0048 process.l1mw = cms.EDAnalyzer("L1MenuWriter")
0049 
0050 from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
0051 outputDB = cms.Service("PoolDBOutputService",
0052                        CondDBSetup,
0053                        connect = cms.string('sqlite_file:L1Menu_Collisions2015_25nsStage1_v7_uGT.db'),
0054                        toPut   = cms.VPSet(
0055                            cms.PSet(
0056                                record = cms.string('L1TUtmTriggerMenuRcd'),
0057                                tag = cms.string("L1TUtmTriggerMenu_test")
0058                            )
0059                        )
0060 )
0061 outputDB.DBParameters.authenticationPath = '.'
0062 process.add_(outputDB)
0063 
0064 process.p = cms.Path(process.getter + process.l1mw)