Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process('MVAMET')
0004 
0005 process.task = cms.Task()
0006 
0007 # import of standard configurations
0008 process.load('Configuration.StandardSequences.Services_cff')
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('FWCore.MessageService.MessageLogger_cfi')
0011 process.load('Configuration.EventContent.EventContent_cff')
0012 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0013 process.task.add(process.mix)
0014 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0015 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0016 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0017 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0018 
0019 
0020 process.maxEvents = cms.untracked.PSet(
0021     input = cms.untracked.int32(1000)
0022 )
0023 
0024 
0025 
0026 # Input source
0027 process.source = cms.Source("PoolSource",
0028     secondaryFileNames = cms.untracked.vstring(),
0029     fileNames = cms.untracked.vstring('/store/mc/RunIIFall15MiniAODv2/DYJetsToLL_M-50_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/MINIAODSIM/PU25nsData2015v1_76X_mcRun2_asymptotic_v12-v1/70000/DC327D28-D3B8-E511-9FB7-008CFA0A59C0.root '),
0030                             skipEvents = cms.untracked.uint32(0)         
0031 )
0032 
0033 # Output definition
0034 
0035 process.MINIAODSIMoutput = cms.OutputModule("PoolOutputModule",
0036     compressionLevel = cms.untracked.int32(4),
0037     compressionAlgorithm = cms.untracked.string('LZMA'),
0038     eventAutoFlushCompressedSize = cms.untracked.int32(15728640),
0039     outputCommands = cms.untracked.vstring( "keep *_ak4PFJets_*_MVAMET",
0040                                             "keep *_pfMVAMEt_*_MVAMET",
0041                                             "keep recoMET_*_*_*",
0042                                             "keep patMETs_*_*_*",
0043                                            ),
0044     fileName = cms.untracked.string('miniAODMVAMET.root'),
0045     dataset = cms.untracked.PSet(
0046         filterName = cms.untracked.string(''),
0047         dataTier = cms.untracked.string('')
0048     ),
0049     dropMetaData = cms.untracked.string('ALL'),
0050     fastCloning = cms.untracked.bool(False),
0051     overrideInputFileSplitLevels = cms.untracked.bool(True)
0052 )
0053 
0054 
0055 
0056 process.load("RecoJets.JetProducers.ak4PFJets_cfi")
0057 process.task.add(process.ak4PFJets)
0058 process.ak4PFJets.src = cms.InputTag("packedPFCandidates")
0059 process.ak4PFJets.doAreaFastjet = cms.bool(True)
0060 
0061 from JetMETCorrections.Configuration.DefaultJEC_cff import ak4PFJetsL1FastL2L3
0062 
0063 process.load("RecoMET.METPUSubtraction.mvaPFMET_cff")
0064 process.task.add(process.pfMVAMEtTask)
0065 #process.pfMVAMEt.srcLeptons = cms.VInputTag("slimmedElectrons")
0066 process.pfMVAMEt.srcPFCandidates = cms.InputTag("packedPFCandidates")
0067 process.pfMVAMEt.srcVertices = cms.InputTag("offlineSlimmedPrimaryVertices")
0068 
0069 process.puJetIdForPFMVAMEt.jec =  cms.string('AK4PF')
0070 #process.puJetIdForPFMVAMEt.jets = cms.InputTag("ak4PFJets")
0071 process.puJetIdForPFMVAMEt.vertexes = cms.InputTag("offlineSlimmedPrimaryVertices")
0072 process.puJetIdForPFMVAMEt.rho = cms.InputTag("fixedGridRhoFastjetAll")
0073 
0074 
0075 
0076 # Other statements
0077 from Configuration.AlCa.GlobalTag import GlobalTag
0078 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0079 
0080 # Path and EndPath definitions
0081 process.endjob_step = cms.EndPath(process.endOfProcess)
0082 process.MINIAODSIMoutput_step = cms.EndPath(process.MINIAODSIMoutput, process.task)