Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("LikelihoodDBLocalReader")
0004 
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     cerr = cms.untracked.PSet(
0007         enable = cms.untracked.bool(False)
0008     ),
0009     cout = cms.untracked.PSet(
0010         enable = cms.untracked.bool(True),
0011         threshold = cms.untracked.string('INFO')
0012     )
0013 )
0014 
0015 process.load('Configuration.StandardSequences.Services_cff')
0016 process.load("JetMETCorrections.Modules.qglESProducer_cfi")
0017 
0018 from CondCore.DBCommon.CondDBSetup_cfi import *
0019 
0020 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0021 
0022 process.source = cms.Source("EmptySource")
0023 
0024 qgDatabaseVersion = 'v0-test'
0025 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0026       CondDBSetup,
0027       toGet = cms.VPSet(
0028         cms.PSet(
0029             record = cms.string('QGLikelihoodRcd'),
0030             tag    = cms.string('QGLikelihoodObject_'+qgDatabaseVersion+'_AK5PF'),
0031             label  = cms.untracked.string('QGL_AK5PF')
0032         ),
0033         cms.PSet(
0034             record = cms.string('QGLikelihoodRcd'),
0035             tag    = cms.string('QGLikelihoodObject_'+qgDatabaseVersion+'_AK5PFchs'),
0036             label  = cms.untracked.string('QGL_AK5PFchs')
0037         ),
0038         cms.PSet(
0039             record = cms.string('QGLikelihoodSystematicsRcd'),
0040             tag    = cms.string('QGLikelihoodSystematicsObject_'+qgDatabaseVersion+'_Pythia'),
0041             label  = cms.untracked.string('QGL_Syst_Pythia')
0042         ),
0043         cms.PSet(
0044             record = cms.string('QGLikelihoodSystematicsRcd'),
0045             tag    = cms.string('QGLikelihoodSystematicsObject_'+qgDatabaseVersion+'_Herwig++'),
0046             label  = cms.untracked.string('QGL_Syst_Herwig++')
0047         ),
0048       ),
0049       connect = cms.string('sqlite:QGL_'+qgDatabaseVersion+'.db')
0050 )
0051 
0052 
0053 process.demo1 = cms.EDAnalyzer('QGLikelihoodDBReader', 
0054         payloadName    = cms.untracked.string('QGL_AK5PF'),
0055         printScreen    = cms.untracked.bool(False),
0056         createTextFile = cms.untracked.bool(True)
0057 )
0058 
0059 process.demo2 = cms.EDAnalyzer('QGLikelihoodDBReader', 
0060         payloadName    = cms.untracked.string('QGL_AK5PFchs'),
0061         printScreen    = cms.untracked.bool(False),
0062         createTextFile = cms.untracked.bool(True)
0063 )
0064 
0065 process.demo3 = cms.EDAnalyzer('QGLikelihoodSystematicsDBReader', 
0066         payloadName    = cms.untracked.string('QGL_Syst_Pythia'),
0067         printScreen    = cms.untracked.bool(False),
0068         createTextFile = cms.untracked.bool(True)
0069 )
0070 
0071 process.demo4 = cms.EDAnalyzer('QGLikelihoodSystematicsDBReader', 
0072         payloadName    = cms.untracked.string('QGL_Syst_Herwig++'),
0073         printScreen    = cms.untracked.bool(False),
0074         createTextFile = cms.untracked.bool(True)
0075 )
0076 
0077 process.p = cms.Path(process.demo1 * process.demo2 * process.demo3 * process.demo4)