Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:25:36

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ##____________________________________________________________________________||
0004 process = cms.Process("TEST")
0005 
0006 ##____________________________________________________________________________||
0007 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0008 
0009 ##____________________________________________________________________________||
0010 process.load("RecoMET/METProducers.METSignificance_cfi")
0011 process.load("RecoMET/METProducers.METSignificanceParams_cfi")
0012 
0013 ##____________________________________________________________________________||
0014 process.load('Configuration.StandardSequences.Services_cff')
0015 process.load("JetMETCorrections.Modules.JetResolutionESProducer_cfi")
0016 from CondCore.DBCommon.CondDBSetup_cfi import *
0017 
0018 process.jer = cms.ESSource("PoolDBESSource",
0019       CondDBSetup,
0020       toGet = cms.VPSet(
0021         # Pt Resolution
0022         cms.PSet(
0023             record = cms.string('JetResolutionRcd'),
0024             tag    = cms.string('JR_MC_PtResolution_Summer15_25nsV6_AK4PFchs'),
0025             label  = cms.untracked.string('AK4PFchs_pt')
0026             ),
0027         
0028         # Phi Resolution
0029         cms.PSet(
0030             record = cms.string('JetResolutionRcd'),
0031             tag    = cms.string('JR_MC_PhiResolution_Summer15_25nsV6_AK4PFchs'),
0032             label  = cms.untracked.string('AK4PFchs_phi')
0033             ),
0034         
0035         # Scale factors
0036         cms.PSet(
0037             record = cms.string('JetResolutionScaleFactorRcd'),
0038             tag    = cms.string('JR_DATAMCSF_Summer15_25nsV6_AK4PFchs'),
0039             label  = cms.untracked.string('AK4PFchs')
0040             ),
0041         ),
0042       connect = cms.string('sqlite:Summer15_25nsV6.db')
0043       )
0044 
0045 process.es_prefer_jer = cms.ESPrefer('PoolDBESSource', 'jer')
0046 
0047 ##____________________________________________________________________________||
0048 from RecoMET.METProducers.testInputFiles_cff import recoMETtestInputFiles
0049 process.source = cms.Source(
0050     "PoolSource",
0051     fileNames = cms.untracked.vstring(
0052        ### MINIAODSIM
0053         #'/store/relval/CMSSW_7_3_0/RelValZMM_13/MINIAODSIM/MCRUN2_73_V7-v1/00000/127CA68E-8981-E411-A524-002590593872.root',
0054         #'/store/relval/CMSSW_7_3_0/RelValZMM_13/MINIAODSIM/MCRUN2_73_V7-v1/00000/56FE228D-8981-E411-9AD8-0025905A6126.root'
0055         '/store/data/Run2015D/DoubleMuon/MINIAOD/PromptReco-v3/000/256/675/00000/4AA27F21-8B5F-E511-9AED-02163E014472.root'
0056        )
0057     )
0058 
0059 ##____________________________________________________________________________||
0060 process.out = cms.OutputModule(
0061     "PoolOutputModule",
0062     fileName = cms.untracked.string('recoMET_METSignificance.root'),
0063     SelectEvents   = cms.untracked.PSet( SelectEvents = cms.vstring('p') ),
0064     outputCommands = cms.untracked.vstring(
0065         'drop *',
0066         'keep *_*_*_TEST'
0067         )
0068     )
0069 
0070 ##____________________________________________________________________________||
0071 process.options   = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))
0072 process.MessageLogger.cerr.FwkReport.reportEvery = 50
0073 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100))
0074 
0075 ##____________________________________________________________________________||
0076 process.p = cms.Path(
0077     process.METSignificance
0078     )
0079 
0080 process.e1 = cms.EndPath(
0081     process.out
0082     )
0083 
0084 ##____________________________________________________________________________||