CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
benchmark_HLT_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/CMSSW370pre4/aod_QCDForPF_Fast_0.root',
15  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_1.root',
16  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_2.root',
17  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_3.root',
18  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_4.root',
19  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_5.root',
20  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_6.root',
21  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_7.root',
22  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_8.root',
23  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_9.root',
24  #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_10.root'
25  # Full
26  'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_0.root',
27  'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_1.root',
28  'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_2.root',
29  'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_3.root',
30  'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_4.root',
31  'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_5.root',
32  'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_6.root',
33  ),
34  secondaryFileNames = cms.untracked.vstring(),
35  noEventSort = cms.untracked.bool(True),
36  duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
37 
38  )
39 
40 process.maxEvents = cms.untracked.PSet(
41  input = cms.untracked.int32(-1)
42 )
43 
44 process.load("Validation.RecoParticleFlow.pfJetBenchmark_HLT_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 
51 #process.iterativeCone5PFJets.inputEtMin = 0.0
52 #process.ak4PFJets.inputEtMin = 0.0
53 
54 # should do a cloning
55 process.genParticlesForJets.ignoreParticleIDs.append(14)
56 process.genParticlesForJets.ignoreParticleIDs.append(12)
57 process.genParticlesForJets.ignoreParticleIDs.append(16)
58 # The following 7 lines is to cure a bug in Generators/Pythi6Interface
59 # for the pythia jet gun
60 process.genParticlesForJets.ignoreParticleIDs.append(1)
61 process.genParticlesForJets.ignoreParticleIDs.append(2)
62 process.genParticlesForJets.ignoreParticleIDs.append(3)
63 process.genParticlesForJets.ignoreParticleIDs.append(4)
64 process.genParticlesForJets.ignoreParticleIDs.append(5)
65 process.genParticlesForJets.ignoreParticleIDs.append(6)
66 process.genParticlesForJets.ignoreParticleIDs.append(21)
67 process.genParticlesForJets.excludeResonances = False
68 
69 
70 process.pfJetBenchmark.OutputFile = cms.untracked.string('JetBenchmark_Full_HLT.root')
71 process.pfJetBenchmark.deltaRMax = 0.1
72 process.pfJetBenchmark.OnlyTwoJets = cms.bool(True)
73 process.pfJetBenchmark.InputTruthLabel = cms.InputTag('ak4GenJets')
74 process.p =cms.Path(
75  process.genJetParticles+
76  process.ak4GenJets+
77  #process.iterativeCone5GenJets+
78  #process.ak4PFJets+
79  process.pfJetBenchmark
80  )
81 
82 
83 process.schedule = cms.Schedule(process.p)
84 
85 
86 
87 process.load("FWCore.MessageLogger.MessageLogger_cfi")
88 process.options = cms.untracked.PSet(
89  makeTriggerResults = cms.untracked.bool(True),
90  wantSummary = cms.untracked.bool(True),
91  Rethrow = cms.untracked.vstring('Unknown',
92  'ProductNotFound',
93  'DictionaryNotFound',
94  'InsertFailure',
95  'Configuration',
96  'LogicError',
97  'UnimplementedFeature',
98  'InvalidReference',
99  'NullPointerError',
100  'NoProductSpecified',
101  'EventTimeout',
102  'EventCorruption',
103  'ModuleFailure',
104  'ScheduleExecutionFailure',
105  'EventProcessorFailure',
106  'FileInPathError',
107  'FatalRootError',
108  'NotFound')
109 )
110 
111 process.MessageLogger.cerr.FwkReport.reportEvery = 1000