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 process = cms.Process('qgldb')
0003 
0004 process.MessageLogger = cms.Service("MessageLogger",
0005     cerr = cms.untracked.PSet(
0006         enable = cms.untracked.bool(False)
0007     ),
0008     cout = cms.untracked.PSet(
0009         enable = cms.untracked.bool(True),
0010         threshold = cms.untracked.string('INFO')
0011     )
0012 )
0013 
0014 qgDatabaseVersion = 'v1'
0015 
0016 process.load('CondCore.DBCommon.CondDBCommon_cfi')
0017 process.CondDBCommon.connect = 'sqlite_file:QGL_'+qgDatabaseVersion+'.db'
0018 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0019 process.source = cms.Source('EmptySource')
0020 process.PoolDBOutputService = cms.Service('PoolDBOutputService',
0021    process.CondDBCommon,
0022    toPut = cms.VPSet(
0023       cms.PSet(
0024          record = cms.string('QGL_AK4PF'),
0025          tag    = cms.string('QGLikelihoodObject_'+qgDatabaseVersion+'_AK4PF'),
0026          label  = cms.string('QGL_AK4PF')
0027       ),
0028       cms.PSet(
0029          record = cms.string('QGL_AK4PFchs'),
0030          tag    = cms.string('QGLikelihoodObject_'+qgDatabaseVersion+'_AK4PFchs'),
0031          label  = cms.string('QGL_AK4PFchs')
0032       ),
0033       cms.PSet(
0034          record = cms.string('QGL_AK4PF_antib'),
0035          tag    = cms.string('QGLikelihoodObject_'+qgDatabaseVersion+'_AK4PF_antib'),
0036          label  = cms.string('QGL_AK4PF_antib')
0037       ),
0038       cms.PSet(
0039          record = cms.string('QGL_AK4PFchs_antib'),
0040          tag    = cms.string('QGLikelihoodObject_'+qgDatabaseVersion+'_AK4PFchs_antib'),
0041          label  = cms.string('QGL_AK4PFchs_antib')
0042       ),
0043 # ONLY AFTER FIRST DATA
0044 #     cms.PSet(
0045 #        record = cms.string('QGL_Syst_Pythia'),
0046 #        tag    = cms.string('QGLikelihoodSystematicsObject_'+qgDatabaseVersion+'_Pythia'),
0047 #        label  = cms.string('QGL_Syst_Pythia')
0048 #     ),
0049 #     cms.PSet(
0050 #        record = cms.string('QGL_Syst_Herwig++'),
0051 #        tag    = cms.string('QGLikelihoodSystematicsObject_'+qgDatabaseVersion+'_Herwig++'),
0052 #        label  = cms.string('QGL_Syst_Herwig++')
0053 #     ),
0054    )
0055 )
0056 
0057 # The ROOT files of v1 are at /afs/cern.ch/user/t/tomc/public/qgTagger/QGLikelihoodDBFiles/QGL_v1
0058 srcDirectory = 'JetMETCorrections/Modules/test/' + qgDatabaseVersion + '/'
0059 process.dbWriterAK4PF = cms.EDAnalyzer('QGLikelihoodDBWriter',
0060    src    = cms.string(srcDirectory + 'pdfQG_AK4_13TeV_' + qgDatabaseVersion + '.root'),
0061    payload= cms.string('QGL_AK4PF')
0062 )
0063 process.dbWriterAK4PFchs = cms.EDAnalyzer('QGLikelihoodDBWriter',
0064    src    = cms.string(srcDirectory + 'pdfQG_AK4chs_13TeV_' + qgDatabaseVersion + '.root'),
0065    payload= cms.string('QGL_AK4PFchs')
0066 )
0067 process.dbWriterAK4PF_antib = cms.EDAnalyzer('QGLikelihoodDBWriter',
0068    src    = cms.string(srcDirectory + 'pdfQG_AK4_antib_13TeV_' + qgDatabaseVersion + '.root'),
0069    payload= cms.string('QGL_AK4PF_antib')
0070 )
0071 process.dbWriterAK4PFchs_antib = cms.EDAnalyzer('QGLikelihoodDBWriter',
0072    src    = cms.string(srcDirectory + 'pdfQG_AK4chs_antib_13TeV_' + qgDatabaseVersion + '.root'),
0073    payload= cms.string('QGL_AK4PFchs_antib')
0074 )
0075 # ONLY AFTER FIRST DATA:
0076 #process.dbWriterSystPythia = cms.EDAnalyzer('QGLikelihoodSystematicsDBWriter',
0077 #   src    = cms.string(srcDirectory + 'SystDatabase.txt'),
0078 #   payload= cms.string('QGL_Syst_Pythia')
0079 #)
0080 #process.dbWriterSystHerwigpp = cms.EDAnalyzer('QGLikelihoodSystematicsDBWriter',
0081 #   src    = cms.string(srcDirectory + 'SystDatabase_Hpp.txt'),
0082 #   payload= cms.string('QGL_Syst_Herwig++')
0083 #)
0084  
0085 
0086 process.p = cms.Path(process.dbWriterAK4PF * process.dbWriterAK4PFchs * process.dbWriterAK4PF_antib * process.dbWriterAK4PFchs_antib)