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 process.load("RecoParticleFlow.Configuration.DBS_Samples.RelValQCD_FlatPt_15_3000_Fast_cfi")
14 
15 process.maxEvents = cms.untracked.PSet(
16  input = cms.untracked.int32(5000)
17 )
18 
19 process.load("Validation.RecoParticleFlow.pfCandidateManager_cff")
20 
21 process.dqmSaver.convention = 'Offline'
22 process.dqmSaver.workflow = '/A/B/C'
23 process.dqmEnv.subSystemFolder = 'ParticleFlow'
24 
25 process.p =cms.Path(
26  process.pfCandidateManagerSequence +
27  process.dqmEnv +
28  process.dqmSaver
29  )
30 
31 
32 process.schedule = cms.Schedule(process.p)
33 
34 
35 process.load("FWCore.MessageLogger.MessageLogger_cfi")
36 process.MessageLogger.cerr.FwkReport.reportEvery = 50