CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PatBasicFWLiteJetAnalyzer_Selector_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("FWLitePlots")
4 
5 #input stuff for Run/Lumi selection with the "JSON"-formatted files from the PVT group
6 import FWCore.PythonUtilities.LumiList as LumiList
7 
8 
9 # setup process
10 process = cms.Process("FWLitePlots")
11 
12 # get JSON file correctly parced
13 JSONfile = 'DCSTRONLY_132440-140388'
14 myList = LumiList.LumiList (filename = JSONfile).getCMSSWString().split(',')
15 
16 
17 # Set up the parameters for the calo jet analyzer
18 process.jetStudies = cms.PSet(
19  # input parameter sets
20  jetSrc = cms.InputTag('selectedPatJets'),
21  pfJetSrc = cms.InputTag('selectedPatJetsAK5PF'),
22  metSrc = cms.InputTag('patMETs'),
23  pfMetSrc = cms.InputTag('patMETsPF'),
24  useCalo = cms.bool(True)
25 )
26 
27 # Set up the parameters for the PF jet analyzer
28 process.pfJetStudies = process.jetStudies.clone( useCalo = cms.bool(False) )
29 
30 
31 process.load('PhysicsTools.SelectorUtils.pfJetIDSelector_cfi')
32 process.load('PhysicsTools.SelectorUtils.jetIDSelector_cfi')
33 
34 process.plotParameters = cms.PSet (
35  doTracks = cms.bool(False),
36  useMC = cms.bool(False)
37 )
38 
39 
40 process.inputs = cms.PSet (
41  fileNames = cms.vstring(
42  'reco_7TeV_380_pat.root'
43  ),
44  lumisToProcess = cms.untracked.VLuminosityBlockRange( myList )
45 
46 )
47 
48 process.outputs = cms.PSet (
49  outputName = cms.string('jetPlots.root')
50 )
double split
Definition: MVATrainer.cc:139