Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:50:01

0001 import FWCore.ParameterSet.Config as cms
0002 process = cms.Process('TestPUMods')
0003 
0004 process.load('Configuration/StandardSequences/Services_cff')
0005 process.load('FWCore/MessageService/MessageLogger_cfi')
0006 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0007 process.load("Configuration.StandardSequences.GeometryRecoDB_cff")
0008 process.MessageLogger.cerr.FwkReport.reportEvery = 10
0009 from Configuration.AlCa.GlobalTag import GlobalTag
0010 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0011 
0012 process.load('CommonTools/PileupAlgos/Puppi_cff')
0013 from PhysicsTools.PatAlgos.slimming.puppiForMET_cff import makePuppiesFromMiniAOD
0014 
0015 process.load('CommonTools/PileupAlgos/softKiller_cfi')
0016 
0017 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1000) )
0018 process.source = cms.Source("PoolSource",
0019     fileNames  = cms.untracked.vstring(
0020         '/store/relval/CMSSW_8_1_0_pre9/RelValZMM_13/MINIAODSIM/PU25ns_81X_mcRun2_asymptotic_v2_hip0p6-v1/10000/766B1D3F-7F50-E611-B235-0025905A6064.root'
0021         )
0022 )
0023 process.source.inputCommands = cms.untracked.vstring("keep *",
0024                                                      "drop *_MEtoEDMConverter_*_*")
0025 
0026 process.options = cms.untracked.PSet(
0027   wantSummary = cms.untracked.bool(True),
0028   Rethrow     = cms.untracked.vstring('ProductNotFound'),
0029   fileMode    = cms.untracked.string('NOMERGE')
0030 )
0031 
0032 process.puppi.candName = 'packedPFCandidates'
0033 process.puppi.candName = cms.InputTag('packedPFCandidates')
0034 process.puppi.vertexName = cms.InputTag('offlineSlimmedPrimaryVertices')
0035 
0036 
0037 makePuppiesFromMiniAOD(process)
0038 
0039 process.load('RecoMET.METProducers.pfMetPuppi_cfi')
0040 #process.puppiNoLep.useExistingWeights = True
0041 process.puSequence = cms.Sequence(process.puppi*process.puppiNoLep*process.pfMetPuppi)
0042 process.p = cms.Path(process.puSequence)
0043 process.output = cms.OutputModule("PoolOutputModule",
0044                                   outputCommands = cms.untracked.vstring('keep *'),
0045                                   fileName       = cms.untracked.string ("Output.root")
0046 )
0047 # schedule definition                                                                                                       
0048 process.outpath  = cms.EndPath(process.output)