Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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(285243))
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0011 
0012 #process.load("L1Trigger.L1TCalorimeter.caloStage2Params_2016_v3_3_cfi")
0013 
0014 from CondCore.CondDB.CondDB_cfi import CondDB
0015 CondDB.connect = cms.string('sqlite:l1config.db')
0016 #CondDB.connect = cms.string('frontier://FrontierProd/CMS_CONDITIONS')
0017 #
0018 process.l1conddb = cms.ESSource("PoolDBESSource",
0019        CondDB,
0020        toGet   = cms.VPSet(
0021             cms.PSet(
0022                  record = cms.string('L1TCaloStage2ParamsRcd'),
0023                  tag = cms.string("L1TCaloParams_Stage2v0_hlt")
0024             )
0025        )
0026 )
0027 
0028 process.l1cpu = cms.EDAnalyzer("L1TCaloParamsUpdater")
0029 
0030 from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
0031 outputDB = cms.Service("PoolDBOutputService",
0032                        CondDBSetup,
0033                        connect = cms.string('sqlite_file:l1configTweak.db'),
0034                        toPut   = cms.VPSet(
0035                            cms.PSet(
0036                                record = cms.string('L1TCaloStage2ParamsTweakedRcd'),
0037                                tag = cms.string("L1TCaloStage2Params_Stage2v0_tweak_hlt")
0038                            )
0039                        )
0040 )
0041 outputDB.DBParameters.authenticationPath = '.'
0042 process.add_(outputDB)
0043 
0044 process.p = cms.Path(process.l1cpu)
0045