CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/Validation/RecoParticleFlow/Benchmarks/METBenchmarkGeneric/benchmark_cfg.py

Go to the documentation of this file.
00001 # test file for PFCandidate Validation
00002 # performs a matching with the genParticles collection. 
00003 # creates a root file with histograms filled with PFCandidate data,
00004 # present in the Candidate, and in the PFCandidate classes, for matched
00005 # PFCandidates. Matching histograms (delta pt etc) are also available. 
00006 
00007 import FWCore.ParameterSet.Config as cms
00008 
00009 process = cms.Process("TEST")
00010 process.load("DQMServices.Core.DQM_cfg")
00011 process.load("DQMServices.Components.DQMEnvironment_cfi")
00012 
00013 fa = 'RelValQCD'
00014 fb = 'FlatPt_15_3000_Fast'
00015 fc = 'ParticleFlow'
00016 
00017 process.load("RecoParticleFlow.Configuration.DBS_Samples.%s_%s_cfi" % (fa, fb) )
00018 #process.source = cms.Source("PoolSource",
00019 #fileNames = cms.untracked.vstring(
00020 #'/../user/l/lacroix/MET_Validation/ttbar_fastsim_310_pre6_muonAndJEC/aod.root'
00021 #)
00022 #)
00023 
00024 process.maxEvents = cms.untracked.PSet(
00025     input = cms.untracked.int32(-1)
00026 )
00027 
00028 process.load("Validation.RecoParticleFlow.metBenchmark_cff")
00029 
00030 process.dqmSaver.convention = 'Offline'
00031 #process.dqmSaver.workflow = '/%s/%s/%s' % (fa, fb, fc)
00032 process.dqmSaver.workflow = '/A/B/C'
00033 process.dqmEnv.subSystemFolder = 'ParticleFlow'
00034 
00035 process.p =cms.Path(
00036     process.dqmEnv +
00037     process.metBenchmarkSequence +
00038     process.dqmSaver
00039     )
00040 
00041 
00042 process.schedule = cms.Schedule(process.p)
00043 
00044 
00045 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00046 process.MessageLogger.cerr.FwkReport.reportEvery = 100