Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:00

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("FWLitePlots")
0004 
0005 #input stuff for Run/Lumi selection with the "JSON"-formatted files from the PVT group
0006 import FWCore.PythonUtilities.LumiList as LumiList
0007 
0008 
0009 # setup process
0010 process = cms.Process("FWLitePlots")
0011 
0012 # get JSON file correctly parced
0013 JSONfile = 'DCSTRONLY_132440-140388'
0014 myList = LumiList.LumiList (filename = JSONfile).getCMSSWString().split(',')
0015 
0016 
0017 # Set up the parameters for the calo jet analyzer
0018 process.jetStudies = cms.PSet(
0019     # input parameter sets
0020     jetSrc = cms.InputTag('selectedPatJets'),
0021     pfJetSrc = cms.InputTag('selectedPatJetsAK5PF'),
0022     metSrc = cms.InputTag('patMETs'),
0023     pfMetSrc = cms.InputTag('patMETsPF'),
0024     useCalo = cms.bool(True)
0025 )
0026 
0027 # Set up the parameters for the PF jet analyzer
0028 process.pfJetStudies = process.jetStudies.clone( useCalo = cms.bool(False) )
0029 
0030 
0031 process.load('PhysicsTools.SelectorUtils.pfJetIDSelector_cfi')
0032 process.load('PhysicsTools.SelectorUtils.jetIDSelector_cfi')
0033 
0034 process.plotParameters = cms.PSet (
0035     doTracks = cms.bool(False),
0036     useMC = cms.bool(False)
0037 )
0038 
0039 
0040 process.inputs = cms.PSet (
0041     fileNames = cms.vstring(
0042         'reco_7TeV_380_pat.root'
0043         ),
0044     lumisToProcess = cms.untracked.VLuminosityBlockRange( myList )
0045 
0046 )
0047 
0048 process.outputs = cms.PSet (
0049     outputName = cms.string('jetPlots.root')
0050 )