CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/PhysicsTools/PatExamples/bin/PatBasicFWLiteJetAnalyzer_Selector_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("FWLitePlots")
00004 
00005 #input stuff for Run/Lumi selection with the "JSON"-formatted files from the PVT group
00006 import FWCore.PythonUtilities.LumiList as LumiList
00007 
00008 
00009 # setup process
00010 process = cms.Process("FWLitePlots")
00011 
00012 # get JSON file correctly parced
00013 JSONfile = 'DCSTRONLY_132440-140388'
00014 myList = LumiList.LumiList (filename = JSONfile).getCMSSWString().split(',')
00015 
00016 
00017 # Set up the parameters for the calo jet analyzer
00018 process.jetStudies = cms.PSet(
00019     # input parameter sets
00020     jetSrc = cms.InputTag('selectedPatJets'),
00021     pfJetSrc = cms.InputTag('selectedPatJetsAK5PF'),
00022     metSrc = cms.InputTag('patMETs'),
00023     pfMetSrc = cms.InputTag('patMETsPF'),
00024     useCalo = cms.bool(True)
00025 )
00026 
00027 # Set up the parameters for the PF jet analyzer
00028 process.pfJetStudies = process.jetStudies.clone( useCalo = cms.bool(False) )
00029 
00030 
00031 process.load('PhysicsTools.SelectorUtils.pfJetIDSelector_cfi')
00032 process.load('PhysicsTools.SelectorUtils.jetIDSelector_cfi')
00033 
00034 process.plotParameters = cms.PSet (
00035     doTracks = cms.bool(False),
00036     useMC = cms.bool(False)
00037 )
00038 
00039 
00040 process.inputs = cms.PSet (
00041     fileNames = cms.vstring(
00042         'reco_7TeV_380_pat.root'
00043         ),
00044     lumisToProcess = cms.untracked.VLuminosityBlockRange( myList )
00045 
00046 )
00047 
00048 process.outputs = cms.PSet (
00049     outputName = cms.string('jetPlots.root')
00050 )