Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("tester")
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", firstRun = cms.untracked.uint32(10))
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0011 
0012 ## these lines load ESProducers to be run outside the path (automatically)
0013 process.load("L1Trigger.L1TMuonBarrel.fakeBmtfParams_cff")
0014 process.load("L1Trigger.L1TMuonBarrel.staticKBmtfParams_cff")
0015 
0016 ##this is general code for getting rcds and datas loaded to the ESSetup
0017 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0018    toGet = cms.VPSet(
0019        cms.PSet(
0020            record = cms.string('L1TMuonBarrelParamsRcd'),
0021            data   = cms.vstring('L1TMuonBarrelParams')
0022        ),
0023        cms.PSet(
0024            record = cms.string('L1TMuonBarrelKalmanParamsRcd'),
0025            data = cms.vstring('L1TMuonBarrelKalmanParams')
0026        )
0027    ),
0028    verbose = cms.untracked.bool(True)
0029 )
0030 
0031 from CondCore.CondDB.CondDB_cfi import CondDB
0032 CondDB.connect = cms.string('sqlite:l1config.db')
0033 
0034 outputDB = cms.Service("PoolDBOutputService",
0035                        CondDB,
0036                        toPut   = cms.VPSet(
0037                            cms.PSet(
0038                                record = cms.string('L1TMuonBarrelParamsRcd'),
0039                                tag = cms.string('L1TMuonBarrelParamsPrototype_Stage2v0_hlt')
0040                            ),
0041                            cms.PSet(
0042                                record = cms.string('L1TMuonBarrelKalmanParamsRcd'),
0043                                tag = cms.string('L1TMuonBarrelKalmanParamsPrototype_Stage2v0_hlt')
0044                            )
0045                        )
0046 )
0047 outputDB.DBParameters.authenticationPath = '.'
0048 process.add_(outputDB)
0049 
0050 process.l1bpw = cms.EDAnalyzer("L1TMuonBarrelParamsWriter",
0051                                isO2Opayload = cms.untracked.bool(False))
0052 
0053 process.p = cms.Path(process.getter + process.l1bpw)