CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
benchmark_cfg.py
Go to the documentation of this file.
1 # test file for PFCandidate validation
2 # performs a matching with the genParticles collection.
3 # creates a root file with histograms filled with PFCandidate data,
4 # present in the Candidate, and in the PFCandidate classes, for matched
5 # PFCandidates. Matching histograms (delta pt etc) are also available.
6 
7 import FWCore.ParameterSet.Config as cms
8 
9 process = cms.Process("TEST")
10 process.load("DQMServices.Core.DQM_cfg")
11 process.load("DQMServices.Components.DQMEnvironment_cfi")
12 
13 fa = 'RelValQCD'
14 fb = 'FlatPt_15_3000_Fast'
15 fc = 'ParticleFlow'
16 
17 process.load("RecoParticleFlow.Configuration.DBS_Samples.%s_%s_cfi" % (fa, fb) )
18 #process.source = cms.Source("PoolSource",
19 #fileNames = cms.untracked.vstring(
20 #'/../user/l/lacroix/MET_Validation/ttbar_fastsim_310_pre6_muonAndJEC/aod.root'
21 #)
22 #)
23 
24 process.maxEvents = cms.untracked.PSet(
25  input = cms.untracked.int32(-1)
26 )
27 
28 process.load("Validation.RecoParticleFlow.metBenchmark_cff")
29 
30 process.dqmSaver.convention = 'Offline'
31 #process.dqmSaver.workflow = '/%s/%s/%s' % (fa, fb, fc)
32 process.dqmSaver.workflow = '/A/B/C'
33 process.dqmEnv.subSystemFolder = 'ParticleFlow'
34 
35 process.p =cms.Path(
36  process.dqmEnv +
37  process.metBenchmarkSequence +
38  process.dqmSaver
39  )
40 
41 
42 process.schedule = cms.Schedule(process.p)
43 
44 
45 process.load("FWCore.MessageLogger.MessageLogger_cfi")
46 process.MessageLogger.cerr.FwkReport.reportEvery = 100