test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
benchmarkGeneric_cfg.py
Go to the documentation of this file.
1 # Runs PFBenchmarkAnalyzer and PFJetBenchmark on PFJet sample to
2 # monitor performance of PFJets
3 
4 import FWCore.ParameterSet.Config as cms
5 
6 process = cms.Process("TEST")
7 process.load("DQMServices.Core.DQM_cfg")
8 
9 
10 process.source = cms.Source (
11  "PoolSource",
12  fileNames = cms.untracked.vstring(
13  # Fast
14  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_0.root',
15  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_1.root',
16  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_2.root',
17  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_3.root',
18  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_4.root',
19  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_5.root',
20  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_6.root',
21  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_7.root',
22  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_8.root',
23  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_9.root',
24  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_10.root'
25  # Full
26  'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Full_001.root',
27  'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Full_002.root',
28  'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Full_003.root',
29  #'file:aod.root'
30  ),
31  secondaryFileNames = cms.untracked.vstring(),
32  noEventSort = cms.untracked.bool(True),
33  duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
34 
35  )
36 
37 process.maxEvents = cms.untracked.PSet(
38  input = cms.untracked.int32(-1)
39 )
40 
41 process.load("Validation.RecoParticleFlow.pfJetBenchmark_cfi")
42 process.load("Validation.RecoParticleFlow.pfJetBenchmarkGeneric_cfi")
43 process.load("Validation.RecoParticleFlow.caloJetBenchmarkGeneric_cfi")
44 process.load("Validation.RecoParticleFlow.jptJetBenchmarkGeneric_cfi")
45 process.load("RecoJets.Configuration.GenJetParticles_cff")
46 process.load("RecoJets.Configuration.RecoGenJets_cff")
47 process.load("RecoJets.Configuration.RecoPFJets_cff")
48 process.load("PhysicsTools.HepMCCandAlgos.genParticles_cfi")
49 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
50 process.load("JetMETCorrections.Configuration.JetPlusTrackCorrections_cff")
51 process.load("JetMETCorrections.Configuration.ZSPJetCorrections152_cff")
52 process.load("Configuration.StandardSequences.MagneticField_cff")
53 
54 process.iterativeCone5PFJets.inputEtMin = 0.0
55 # Endcap
56 # process.pfJetBenchmarkGeneric.minEta = cms.double(1.6)
57 # process.caloJetBenchmarkGeneric.minEta = cms.double(1.6)
58 # process.jptJetBenchmarkGeneric.minEta = cms.double(1.6)
59 process.pfJetBenchmarkGeneric.maxEta = cms.double(5.0)
60 process.caloJetBenchmarkGeneric.maxEta = cms.double(5.0)
61 process.jptJetBenchmarkGeneric.maxEta = cms.double(5.0)
62 
63 # should do a cloning
64 process.genParticlesForJets.ignoreParticleIDs.append(14)
65 process.genParticlesForJets.ignoreParticleIDs.append(12)
66 process.genParticlesForJets.ignoreParticleIDs.append(16)
67 process.genParticlesForJets.excludeResonances = False
68 
69 
70 process.pfJetBenchmarkGeneric.OutputFile = cms.untracked.string('JetBenchmarkGeneric.root')
71 process.caloJetBenchmarkGeneric.OutputFile = cms.untracked.string('JetBenchmarkGeneric.root')
72 process.jptJetBenchmarkGeneric.OutputFile = cms.untracked.string('JetBenchmarkGeneric.root')
73 
74 process.p =cms.Path(
75  process.genJetParticles+
76  process.ak4GenJets+
77  #process.iterativeCone5PFJets+
78  process.pfJetBenchmarkGeneric+
79  process.caloJetBenchmarkGeneric
80  #process.ZSPJetCorrections+
81  #process.JetPlusTrackCorrections+
82  #process.jptJetBenchmarkGeneric
83  )
84 
85 
86 process.schedule = cms.Schedule(process.p)
87 
88 
89 
90 process.load("FWCore.MessageLogger.MessageLogger_cfi")
91 process.options = cms.untracked.PSet(
92  makeTriggerResults = cms.untracked.bool(True),
93  wantSummary = cms.untracked.bool(True),
94  Rethrow = cms.untracked.vstring('Unknown',
95  'ProductNotFound',
96  'DictionaryNotFound',
97  'InsertFailure',
98  'Configuration',
99  'LogicError',
100  'UnimplementedFeature',
101  'InvalidReference',
102  'NullPointerError',
103  'NoProductSpecified',
104  'EventTimeout',
105  'EventCorruption',
106  'ModuleFailure',
107  'ScheduleExecutionFailure',
108  'EventProcessorFailure',
109  'FileInPathError',
110  'FatalRootError',
111  'NotFound')
112 )
113 
114 process.MessageLogger.cerr.FwkReport.reportEvery = 100