Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:27

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("L1TMuonOverlapParamsRcd"),
0017     type   = cms.string("L1TMuonOverlapParams"),
0018     key    = cms.string("dummy")
0019 ))
0020 
0021 process.load('L1Trigger.L1TMuonOverlap.fakeOmtfParams_cff')
0022 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0023    toGet = cms.VPSet(
0024       cms.PSet(record = cms.string('L1TMuonOverlapParamsRcd'),
0025                data = cms.vstring('L1TMuonOverlapParams'))
0026                    ),
0027    verbose = cms.untracked.bool(True)
0028 )
0029 
0030 process.l1ow = cms.EDAnalyzer("L1TOverlapWriter")
0031 
0032 from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
0033 outputDB = cms.Service("PoolDBOutputService",
0034                        CondDBSetup,
0035                        connect = cms.string('sqlite_file:qwe.db'),
0036                        toPut   = cms.VPSet(
0037                            cms.PSet(
0038                                record = cms.string('L1TMuonOverlapPatternParamsRcd'),
0039                                tag = cms.string("dummy")
0040                            )
0041                        )
0042 )
0043 outputDB.DBParameters.authenticationPath = '.'
0044 process.add_(outputDB)
0045 
0046 process.p = cms.Path(process.getter + process.l1ow)