CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/Validation/RecoParticleFlow/Benchmarks/JetBenchmarkSpecific/benchmarkGeneric_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/CMSSW310pre11/aod_QCDForPF_Fast_0.root',
00015        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_1.root',
00016        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_2.root',
00017        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_3.root',
00018        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_4.root',
00019        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_5.root',
00020        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_6.root',
00021        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_7.root',
00022        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_8.root',
00023        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_9.root',
00024        #'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Fast_10.root'
00025     # Full
00026        'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Full_001.root',
00027        'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Full_002.root',
00028        'rfio:/castor/cern.ch/user/p/pjanot/CMSSW310pre11/aod_QCDForPF_Full_003.root',
00029        #'file:aod.root'
00030        ),
00031     secondaryFileNames = cms.untracked.vstring(),
00032     noEventSort = cms.untracked.bool(True),
00033     duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
00034     
00035     )
00036 
00037 process.maxEvents = cms.untracked.PSet(
00038     input = cms.untracked.int32(-1)
00039 )
00040 
00041 process.load("Validation.RecoParticleFlow.pfJetBenchmark_cfi")
00042 process.load("Validation.RecoParticleFlow.pfJetBenchmarkGeneric_cfi")
00043 process.load("Validation.RecoParticleFlow.caloJetBenchmarkGeneric_cfi")
00044 process.load("Validation.RecoParticleFlow.jptJetBenchmarkGeneric_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 process.load("JetMETCorrections.Configuration.JetPlusTrackCorrections_cff")
00051 process.load("JetMETCorrections.Configuration.ZSPJetCorrections152_cff")
00052 process.load("Configuration.StandardSequences.MagneticField_cff")
00053 
00054 process.iterativeCone5PFJets.inputEtMin = 0.0
00055 # Endcap
00056 # process.pfJetBenchmarkGeneric.minEta = cms.double(1.6)
00057 # process.caloJetBenchmarkGeneric.minEta = cms.double(1.6)
00058 # process.jptJetBenchmarkGeneric.minEta = cms.double(1.6)
00059 process.pfJetBenchmarkGeneric.maxEta = cms.double(5.0)
00060 process.caloJetBenchmarkGeneric.maxEta = cms.double(5.0)
00061 process.jptJetBenchmarkGeneric.maxEta = cms.double(5.0)
00062 
00063 # should do a cloning
00064 process.genParticlesForJets.ignoreParticleIDs.append(14)
00065 process.genParticlesForJets.ignoreParticleIDs.append(12)
00066 process.genParticlesForJets.ignoreParticleIDs.append(16)
00067 process.genParticlesForJets.excludeResonances = False
00068 
00069 
00070 process.pfJetBenchmarkGeneric.OutputFile = cms.untracked.string('JetBenchmarkGeneric.root')
00071 process.caloJetBenchmarkGeneric.OutputFile = cms.untracked.string('JetBenchmarkGeneric.root')
00072 process.jptJetBenchmarkGeneric.OutputFile = cms.untracked.string('JetBenchmarkGeneric.root')
00073 
00074 process.p =cms.Path(
00075     process.genJetParticles+
00076     process.iterativeCone5GenJets+
00077     #process.iterativeCone5PFJets+
00078     process.pfJetBenchmarkGeneric+
00079     process.caloJetBenchmarkGeneric
00080     #process.ZSPJetCorrections+
00081     #process.JetPlusTrackCorrections+
00082     #process.jptJetBenchmarkGeneric
00083     )
00084 
00085 
00086 process.schedule = cms.Schedule(process.p)
00087 
00088 
00089 
00090 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00091 process.options = cms.untracked.PSet(
00092     makeTriggerResults = cms.untracked.bool(True),
00093     wantSummary = cms.untracked.bool(True),
00094     Rethrow = cms.untracked.vstring('Unknown', 
00095         'ProductNotFound', 
00096         'DictionaryNotFound', 
00097         'InsertFailure', 
00098         'Configuration', 
00099         'LogicError', 
00100         'UnimplementedFeature', 
00101         'InvalidReference', 
00102         'NullPointerError', 
00103         'NoProductSpecified', 
00104         'EventTimeout', 
00105         'EventCorruption', 
00106         'ModuleFailure', 
00107         'ScheduleExecutionFailure', 
00108         'EventProcessorFailure', 
00109         'FileInPathError', 
00110         'FatalRootError', 
00111         'NotFound')
00112 )
00113 
00114 process.MessageLogger.cerr.FwkReport.reportEvery = 100