Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:19:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("JERDBLocalReader")
0004 
0005 process.load('Configuration.StandardSequences.Services_cff')
0006 process.load("JetMETCorrections.Modules.JetResolutionESProducer_cfi")
0007 
0008 from CondCore.DBCommon.CondDBSetup_cfi import *
0009 
0010 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0011 
0012 process.source = cms.Source("EmptySource")
0013 
0014 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0015         CondDBSetup,
0016         toGet = cms.VPSet(
0017             # Resolution
0018             cms.PSet(
0019                 record = cms.string('JetResolutionRcd'),
0020                 tag    = cms.string('JetResolutionObject_Summer15_V0_MC_JER_AK4PFchs'),
0021                 label  = cms.untracked.string('AK4PFchs')
0022                 ),
0023 
0024             # Scale factors
0025             cms.PSet(
0026                 record = cms.string('JetResolutionScaleFactorRcd'),
0027                 tag    = cms.string('JetResolutionObject_Summer12_V1_MC_JER_SF_AK5PFchs'),
0028                 label  = cms.untracked.string('AK5PFchs')
0029                 ),
0030             ),
0031         connect = cms.string('sqlite:Summer15_V0_MC_JER.db')
0032         )
0033 
0034 
0035 process.demo1 = cms.EDAnalyzer('JetResolutionDBReader', 
0036         era = cms.untracked.string('Summer15_V0_MC_JER'),
0037         label = cms.untracked.string('AK4PFchs'),
0038         dump = cms.untracked.bool(True),
0039         saveFile = cms.untracked.bool(True)
0040         )
0041 
0042 process.demo2 = cms.EDAnalyzer('JetResolutionScaleFactorDBReader', 
0043         era = cms.untracked.string('Summer12_V1_MC_JER_SF'),
0044         label = cms.untracked.string('AK5PFchs'),
0045         dump = cms.untracked.bool(True),
0046         saveFile = cms.untracked.bool(True)
0047         )
0048 
0049 process.p = cms.Path(process.demo1 * process.demo2)