Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("JETRECO")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0007 
0008 # input
0009 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100))
0010 process.source = cms.Source(
0011     "PoolSource",
0012     fileNames = cms.untracked.vstring(
0013 '/store/relval/CMSSW_7_2_0_pre6/RelValRSKKGluon_m3000GeV_13/GEN-SIM-RECO/PRE_LS172_V11-v1/00000/224918A9-C63F-E411-9E41-0025905A6118.root',
0014 '/store/relval/CMSSW_7_2_0_pre6/RelValRSKKGluon_m3000GeV_13/GEN-SIM-RECO/PRE_LS172_V11-v1/00000/80D36272-BB3F-E411-A865-0026189437EB.root',
0015 '/store/relval/CMSSW_7_2_0_pre6/RelValRSKKGluon_m3000GeV_13/GEN-SIM-RECO/PRE_LS172_V11-v1/00000/B449F5E7-BD3F-E411-A643-002618943874.root',
0016 '/store/relval/CMSSW_7_2_0_pre6/RelValRSKKGluon_m3000GeV_13/GEN-SIM-RECO/PRE_LS172_V11-v1/00000/E8CC1FE0-CA3F-E411-9060-0025905B8592.root'
0017     )
0018     #inputCommands = cms.untracked.vstring('keep *_*_*_*','drop recoTrackExtrapolations_*_*_RECO')  
0019     )
0020 # output
0021 process.load('Configuration/EventContent/EventContent_cff')
0022 process.output = cms.OutputModule(
0023     "PoolOutputModule",
0024     outputCommands = process.RecoJetsAOD.outputCommands, 
0025     fileName = cms.untracked.string('testJetRecoRECO.root'),
0026     dataset = cms.untracked.PSet(
0027             dataTier = cms.untracked.string(''),
0028                     filterName = cms.untracked.string('')
0029                     )
0030 )
0031 process.output.outputCommands.append('drop *_*_*_RECO')
0032 #process.output.outputCommands.append('keep recoCaloJets_*_*_*')
0033 #process.output.outputCommands.append('keep recoPFJets_*_*_*')
0034 #process.output.outputCommands.append('keep recoGenJets_*_*_*')
0035 #process.output.outputCommands.append('keep recoBasicJets_*_*_*')
0036 process.output.outputCommands.append('keep *_*_*_JETRECO')
0037 process.output.outputCommands.append('keep recoPFCandidates_particleFlow_*_*')
0038 #process.output.outputCommands.append('keep *_trackRefsForJets_*_*')
0039 #process.output.outputCommands.append('keep *_generalTracks_*_*')
0040 
0041 # jet reconstruction
0042 process.load('Configuration.StandardSequences.Services_cff')
0043 process.load('Configuration.StandardSequences.GeometryDB_cff')
0044 process.load('Configuration.StandardSequences.MagneticField_cff')
0045 process.load('Configuration.StandardSequences.Reconstruction_cff')
0046 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0047 from Configuration.AlCa.GlobalTag import GlobalTag
0048 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0049 
0050 process.load("RecoJets/Configuration/RecoJetsGlobal_cff")
0051 
0052 process.recoJets = cms.Path(process.recoPFJetsWithSubstructure)
0053 
0054 process.out = cms.EndPath(process.output)
0055 
0056 # schedule
0057 process.schedule = cms.Schedule(process.recoJets,process.out)