Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:26

0001 database = 'sqlite_file:fftjet_corr.db'
0002 sequenceTag = "PF0"
0003 
0004 import FWCore.ParameterSet.Config as cms 
0005 from JetMETCorrections.FFTJetModules.fftjetcorrectionesproducer_cfi import *
0006 
0007 process = cms.Process('FFTJetCorrectorDBRead') 
0008 
0009 process.source = cms.Source('EmptySource') 
0010 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1)) 
0011 
0012 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0013 process.CondDBCommon.connect = database
0014 
0015 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0016     process.CondDBCommon,
0017     toGet = cms.VPSet(cms.PSet(
0018         record = cms.string(fftjet_corr_types[sequenceTag].dbRecord),
0019         tag = cms.string(fftjet_corr_types[sequenceTag].dbTag)
0020     ))
0021 )
0022 
0023 process.reader = cms.EDAnalyzer(
0024     'FFTJetCorrectorDBReader',
0025     record = cms.string(fftjet_corr_types[sequenceTag].dbRecord),
0026     outputFile = cms.string("fftjet_corr_restored.gssa"),
0027     printAsString = cms.bool(False),
0028     readArchive = cms.bool(True),
0029     isArchiveCompressed = cms.bool(False)
0030 )
0031 
0032 process.p = cms.Path(process.reader)