CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Validation/RecoParticleFlow/Benchmarks/JetBenchmarkSpecific/benchmark_HLT_cfg.py

Go to the documentation of this file.
00001 # Runs PFBenchmarkAnalyzer and PFJetBenchmark on PFJet sample to
00002 # monitor performance of PFJets
00003 
00004 import FWCore.ParameterSet.Config as cms
00005   
00006 process = cms.Process("TEST")
00007 process.load("DQMServices.Core.DQM_cfg")
00008 
00009 
00010 process.source = cms.Source (
00011     "PoolSource",    
00012     fileNames = cms.untracked.vstring(
00013     # Fast
00014        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_0.root',
00015        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_1.root', 
00016        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_2.root',
00017        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_3.root',
00018        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_4.root',
00019        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_5.root',
00020        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_6.root',
00021        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_7.root',
00022        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_8.root',
00023        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_9.root',
00024        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW370pre4/aod_QCDForPF_Fast_10.root'
00025        # Full
00026        'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_0.root',
00027        'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_1.root',
00028        'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_2.root',
00029        'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_3.root',
00030        'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_4.root',
00031        'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_5.root',
00032        'rfio:/castor/cern.ch/user/g/gennai/PFlowHLT/CMSSW_3_6_3_patch3/RelValQCD_FlatPt_15_3000_PFlowHLT_OfflineVertex_6.root',
00033        ),
00034     secondaryFileNames = cms.untracked.vstring(),
00035     noEventSort = cms.untracked.bool(True),
00036     duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
00037     
00038     )
00039 
00040 process.maxEvents = cms.untracked.PSet(
00041     input = cms.untracked.int32(-1)
00042 )
00043 
00044 process.load("Validation.RecoParticleFlow.pfJetBenchmark_HLT_cfi")
00045 process.load("RecoJets.Configuration.GenJetParticles_cff")
00046 process.load("RecoJets.Configuration.RecoGenJets_cff") 
00047 process.load("RecoJets.Configuration.RecoPFJets_cff") 
00048 process.load("PhysicsTools.HepMCCandAlgos.genParticles_cfi")
00049 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
00050 
00051 #process.iterativeCone5PFJets.inputEtMin = 0.0
00052 #process.ak5PFJets.inputEtMin = 0.0
00053 
00054 # should do a cloning
00055 process.genParticlesForJets.ignoreParticleIDs.append(14)
00056 process.genParticlesForJets.ignoreParticleIDs.append(12)
00057 process.genParticlesForJets.ignoreParticleIDs.append(16)
00058 # The following 7 lines is to cure a bug in Generators/Pythi6Interface
00059 # for the pythia jet gun
00060 process.genParticlesForJets.ignoreParticleIDs.append(1)
00061 process.genParticlesForJets.ignoreParticleIDs.append(2)
00062 process.genParticlesForJets.ignoreParticleIDs.append(3)
00063 process.genParticlesForJets.ignoreParticleIDs.append(4)
00064 process.genParticlesForJets.ignoreParticleIDs.append(5)
00065 process.genParticlesForJets.ignoreParticleIDs.append(6)
00066 process.genParticlesForJets.ignoreParticleIDs.append(21)
00067 process.genParticlesForJets.excludeResonances = False
00068 
00069 
00070 process.pfJetBenchmark.OutputFile = cms.untracked.string('JetBenchmark_Full_HLT.root')
00071 process.pfJetBenchmark.deltaRMax = 0.1
00072 process.pfJetBenchmark.OnlyTwoJets = cms.bool(True)
00073 #process.pfJetBenchmark.InputTruthLabel = cms.InputTag('ak5GenJets')
00074 process.p =cms.Path(
00075     process.genJetParticles+
00076     #process.ak5GenJets+
00077     process.iterativeCone5GenJets+
00078     #process.ak5PFJets+
00079     process.pfJetBenchmark
00080     )
00081 
00082 
00083 process.schedule = cms.Schedule(process.p)
00084 
00085 
00086 
00087 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00088 process.options = cms.untracked.PSet(
00089     makeTriggerResults = cms.untracked.bool(True),
00090     wantSummary = cms.untracked.bool(True),
00091     Rethrow = cms.untracked.vstring('Unknown', 
00092         'ProductNotFound', 
00093         'DictionaryNotFound', 
00094         'InsertFailure', 
00095         'Configuration', 
00096         'LogicError', 
00097         'UnimplementedFeature', 
00098         'InvalidReference', 
00099         'NullPointerError', 
00100         'NoProductSpecified', 
00101         'EventTimeout', 
00102         'EventCorruption', 
00103         'ModuleFailure', 
00104         'ScheduleExecutionFailure', 
00105         'EventProcessorFailure', 
00106         'FileInPathError', 
00107         'FatalRootError', 
00108         'NotFound')
00109 )
00110 
00111 process.MessageLogger.cerr.FwkReport.reportEvery = 1000