Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process("test")
0003 
0004 process.load("FWCore.MessageService.MessageLogger_cfi")
0005 process.MessageLogger.cerr.FwkReport.reportEvery = 500
0006 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0007 
0008 # DataBase
0009 process.load("CondCore.CondDB.CondDB_cfi")
0010 #process.CondDB.connect = 'sqlite_file:../data/Summer16_V0_DATA_MEtXY.db'
0011 process.CondDB.connect = 'sqlite_file:../data/Summer16_V0_MC_MEtXY.db'
0012 
0013 
0014 #process.source = cms.Source("EmptySource")
0015 
0016 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0017       process.CondDB,
0018       timetype = cms.string('runnumber'),
0019       toGet = cms.VPSet(
0020       cms.PSet(
0021               record = cms.string('MEtXYcorrectRecord'),# plugin 
0022               #tag    = cms.string('MEtXYcorrectParametersCollection_Summer16_V0_DATA_PfType1Met'), 
0023               tag    = cms.string('MEtXYcorrectParametersCollection_Summer16_V0_MC_PfType1Met'), 
0024               #label  = cms.untracked.string('PfType1Met')
0025               label  = cms.untracked.string('PfType1MetLocal')
0026             )                                                                               
0027        )
0028 )
0029 
0030 process.source = cms.Source(
0031     'PoolSource',
0032     fileNames = cms.untracked.vstring('file:/u/user/salee/Data/ReValZMM_13/CMSSW_8_1_0_pre6-PU25ns_80X_mcRun2_asymptotic_v14-v1/MINIAODSIM/A0DE71C7-D82C-E611-88FF-0025905B85AA.root')
0033 # 720 RECO
0034     #fileNames = cms.untracked.vstring('root://eoscms.cern.ch//store/relval/CMSSW_7_5_0_pre4/RelValTTbar_13/GEN-SIM-RECO/MCRUN2_75_V1-v1/00000/469C34DB-12F6-E411-B012-0025905B855C.root')
0035 # PHYS14 mAOD
0036 #    fileNames = cms.untracked.vstring('root://xrootd.unl.edu//store/mc/Phys14DR/TTJets_MSDecaysCKM_central_Tune4C_13TeV-madgraph-tauola/MINIAODSIM/PU30bx50_PHYS14_25_V1-v1/00000/003B6371-8D81-E411-8467-003048F0E826.root')
0037 # PHYS14 mAOD local
0038     )
0039 
0040 
0041 process.load('Configuration.StandardSequences.Services_cff')
0042 #process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0043 #process.GlobalTag.globaltag = 'MCRUN2_75_V1'
0044 process.load('JetMETCorrections.Type1MET.correctionTermsPfMetMultDB_cff')
0045 process.corrPfMetXYMultDB.payloadName = cms.string('PfType1MetLocal')
0046 #process.corrPfMetXYMultDB.isData = cms.bool(True)
0047 process.corrPfMetXYMultDB.isData = cms.bool(False)
0048 #process.corrPfMetXYMultDB.sampleType = cms.untracked.string('MC') #DY, MC (default), TTJets, WJets, Data
0049 
0050 process.load('JetMETCorrections.Type1MET.correctedPatMet_cff')
0051 #process.pfMetTxy.isMiniAod = cms.bool(True) default
0052 #process.patMetTxy.src = cms.InputTag('slimmedMETs') default
0053 #process.patMetTxy.srcCorrections = cms.VInputTag('corrPfMetXYMultDB') default
0054 
0055 process.out = cms.OutputModule("PoolOutputModule",
0056      #verbose = cms.untracked.bool(True),
0057 #     SelectEvents   = cms.untracked.PSet( SelectEvents = cms.vstring('p') ),
0058      fileName = cms.untracked.string('histo.root'),
0059      outputCommands = cms.untracked.vstring('keep *_*_*_test','keep recoPFMETs_*_*_*','keep *_slimmedMETs_*_*','keep *_offlineSlimmedPrimaryVertices_*_*') 
0060 )
0061 #
0062 # RUN!
0063 #
0064 process.run = cms.Path(
0065   process.correctionTermsPfMetMultDB
0066   *process.patMetTxy
0067 )
0068 
0069 process.outpath = cms.EndPath(process.out)