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(3))
0010 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
0011 
0012 process.load("L1Trigger.L1TCalorimeter.caloStage2Params_2017_v1_7_cfi")
0013 
0014 process.getter = cms.EDAnalyzer("EventSetupRecordDataGetter",
0015    toGet = cms.VPSet(
0016        cms.PSet(
0017            record = cms.string('L1TCaloParamsRcd'),
0018            data   = cms.vstring('CaloParams')
0019        )
0020    ),
0021    verbose = cms.untracked.bool(True)
0022 )
0023 
0024 from CondCore.CondDB.CondDB_cfi import CondDB
0025 CondDB.connect = cms.string('sqlite:l1config.db')
0026 
0027 outputDB = cms.Service("PoolDBOutputService",
0028                        CondDB,
0029                        toPut   = cms.VPSet(
0030                            cms.PSet(
0031                                record = cms.string('L1TCaloParamsRcd'),
0032                                tag = cms.string('L1TCaloParamsPrototype_Stage2v0_hlt')
0033                            )
0034                        )
0035 )
0036 outputDB.DBParameters.authenticationPath = '.'
0037 process.add_(outputDB)
0038 
0039 process.l1cpw = cms.EDAnalyzer("L1TCaloStage2ParamsWriter", isO2Opayload = cms.untracked.bool(False))
0040 
0041 process.p = cms.Path(process.getter + process.l1cpw)
0042