CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/Validation/RecoParticleFlow/Benchmarks/ElectronBenchmarkGeneric/benchmark-oval_cfg.py

Go to the documentation of this file.
00001 # Runs PFBenchmarkAnalyzer and PFElectronBenchmark on PFElectron sample to
00002 # monitor performance of PFElectron
00003 import sys
00004 import os
00005 sys.path.append('.')
00006 import dbs_discovery
00007 import elec_selection
00008 
00009 import FWCore.ParameterSet.Config as cms
00010 
00011 process = cms.Process("TEST")
00012 process.load("DQMServices.Core.DQM_cfg")
00013 
00014 
00015 # Source : general definition
00016 process.source = cms.Source("PoolSource",
00017                             fileNames = cms.untracked.vstring(),                            
00018                             secondaryFileNames = cms.untracked.vstring(),
00019                             noEventSort = cms.untracked.bool(True),
00020                             duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
00021                             )
00022 
00023 # Update input files
00024 #print dbs_discovery.search()
00025 process.source.fileNames.extend(dbs_discovery.search())
00026 
00027 
00028 process.maxEvents = cms.untracked.PSet(
00029         input = cms.untracked.int32(-1)
00030         )
00031 
00032 
00033 process.load("Validation.RecoParticleFlow.electronBenchmarkGeneric_cff")
00034 
00035 # Update the electron selection 
00036 process.gensource.select = elec_selection.selection()
00037 
00038 # Update the delta R matching criteria : 0.2 for electrons; 0.05 for pions
00039 process.pfElectronBenchmarkGeneric.deltaRMax = elec_selection.deltaR()
00040 
00041 # Update the output file
00042 #process.pfElectronBenchmarkGeneric.OutputFile = cms.untracked.string(os.environ['TEST_OUTPUT_FILE'])
00043 
00044 process.pfElectronBenchmarkGeneric.OutputFile = cms.untracked.string('benchmark.root')
00045 
00046 
00047 
00048 process.p =cms.Path(
00049         process.electronBenchmarkGeneric
00050         )
00051 
00052 
00053 #process.out = cms.OutputModule("PoolOutputModule",
00054 #                               outputCommands = cms.untracked.vstring('keep *'),
00055 #                               outputFile = cms.string(os.environ['TEST_OUTPUT_FILE'])
00056 #                               )
00057 #process.outpath = cms.EndPath(process.out)
00058 
00059 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00060 
00061 process.MessageLogger.cerr.FwkReport.reportEvery = 100
00062 
00063 
00064