CMS 3D CMS Logo

benchmark_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("TEST")
4 
5 process.source = cms.Source("PoolSource",
6  noEventSort = cms.untracked.bool(True),
7  duplicateCheckMode = cms.untracked.string('noDuplicateCheck'),
8  secondaryFileNames = cms.untracked.vstring(),
9  fileNames = cms.untracked.vstring('/store/relval/CMSSW_3_3_0/RelValQCD_Pt_80_120/GEN-SIM-RECO/MC_31X_V9-v1/0009/880AA097-75B7-DE11-B848-001D09F23C73.root',
10  '/store/relval/CMSSW_3_3_0/RelValQCD_Pt_80_120/GEN-SIM-RECO/MC_31X_V9-v1/0008/CC9C9FAC-86B6-DE11-8A1B-001D09F24FEC.root',
11  '/store/relval/CMSSW_3_3_0/RelValQCD_Pt_80_120/GEN-SIM-RECO/MC_31X_V9-v1/0008/A44075CB-7FB6-DE11-8010-000423D98868.root',
12  '/store/relval/CMSSW_3_3_0/RelValQCD_Pt_80_120/GEN-SIM-RECO/MC_31X_V9-v1/0008/6E433585-84B6-DE11-A3E1-001D09F2437B.root',
13  '/store/relval/CMSSW_3_3_0/RelValQCD_Pt_80_120/GEN-SIM-RECO/MC_31X_V9-v1/0008/285A7AC1-82B6-DE11-BA29-001D09F2525D.root',
14  '/store/relval/CMSSW_3_3_0/RelValQCD_Pt_80_120/GEN-SIM-RECO/MC_31X_V9-v1/0008/12755919-88B6-DE11-8FF2-000423D996C8.root',
15  '/store/relval/CMSSW_3_3_0/RelValQCD_Pt_80_120/GEN-SIM-RECO/MC_31X_V9-v1/0008/04B93222-89B6-DE11-93E9-001D09F29524.root')
16 )
17 process.pfAllElectrons = cms.EDFilter("PdgIdPFCandidateSelector",
18  pdgId = cms.vint32(11, -11),
19  src = cms.InputTag("pfNoPileUp")
20 )
21 
22 
23 process.gensource = cms.EDProducer("GenParticlePruner",
24  src = cms.InputTag("genParticles"),
25  select = cms.vstring('drop *',
26  'keep pdgId = 211',
27  'keep pdgId = -211')
28 )
29 
30 
31 process.pfPileUp = cms.EDProducer("PFPileUp",
32  PFCandidates = cms.InputTag("particleFlow"),
33  verbose = cms.untracked.bool(False),
34  Vertices = cms.InputTag("offlinePrimaryVerticesWithBS")
35 )
36 
37 
38 process.pfNoPileUp = cms.EDProducer("TPPileUpPFCandidatesOnPFCandidates",
39  bottomCollection = cms.InputTag("particleFlow"),
40  topCollection = cms.InputTag("pfPileUp"),
41  name = cms.untracked.string('pileUpOnPFCandidates'),
42 )
43 
44 
45 process.pfElectronBenchmarkGeneric = cms.EDAnalyzer("GenericBenchmarkAnalyzer",
46  maxDeltaPhi = cms.double(0.5),
47  BenchmarkLabel = cms.string('PFlowElectrons'),
48  OnlyTwoJets = cms.bool(False),
49  maxEta = cms.double(2.5),
50  minEta = cms.double(-1),
51  recPt = cms.double(2.0),
52  minDeltaPhi = cms.double(-0.5),
53  PlotAgainstRecoQuantities = cms.bool(False),
54  minDeltaEt = cms.double(-100.0),
55  OutputFile = cms.untracked.string('benchmark.root'),
56  StartFromGen = cms.bool(False),
57  deltaRMax = cms.double(0.05),
58  maxDeltaEt = cms.double(50.0),
59  InputTruthLabel = cms.InputTag("gensource"),
60  InputRecoLabel = cms.InputTag("pfAllElectrons"),
61  doMetPlots = cms.bool(False)
62 )
63 
64 
65 process.pfNoPileUpSequence = cms.Sequence(process.pfPileUp+process.pfNoPileUp)
66 
67 
68 process.electronBenchmarkGeneric = cms.Sequence(process.pfNoPileUpSequence+process.pfAllElectrons+process.gensource+process.pfElectronBenchmarkGeneric)
69 
70 
71 process.p = cms.Path(process.electronBenchmarkGeneric)
72 
73 
74 process.MessageLogger = cms.Service("MessageLogger",
75  cerr = cms.untracked.PSet(
76  FwkReport = cms.untracked.PSet(
77  limit = cms.untracked.int32(10000000),
78  reportEvery = cms.untracked.int32(100)
79  ),
80  FwkSummary = cms.untracked.PSet(
81  limit = cms.untracked.int32(10000000),
82  reportEvery = cms.untracked.int32(1)
83  ),
84  INFO = cms.untracked.PSet(
85  limit = cms.untracked.int32(0)
86  ),
87  Root_NoDictionary = cms.untracked.PSet(
88  limit = cms.untracked.int32(0)
89  ),
90  default = cms.untracked.PSet(
91  limit = cms.untracked.int32(10000000)
92  ),
93  noTimeStamps = cms.untracked.bool(False),
94  threshold = cms.untracked.string('INFO'),
95  enableStatistics = cms.untracked.bool(True),
96  statisticsThreshold = cms.untracked.string('WARNING')
97  ),
98  debugModules = cms.untracked.vstring(),
99  default = cms.untracked.PSet(
100 
101  ),
102  suppressDebug = cms.untracked.vstring(),
103  suppressInfo = cms.untracked.vstring(),
104  suppressWarning = cms.untracked.vstring()
105 )
106 
107 
108 process.DQM = cms.Service("DQM",
109  filter = cms.untracked.string(''),
110  publishFrequency = cms.untracked.double(5.0),
111  collectorHost = cms.untracked.string('localhost'),
112  collectorPort = cms.untracked.int32(9090),
113  debug = cms.untracked.bool(False)
114 )
115 
116 
117 process.DQMStore = cms.Service("DQMStore",
118  verboseQT = cms.untracked.int32(0),
119  verbose = cms.untracked.int32(0),
120 )
121 
122 
123 process.HepPDTESSource = cms.ESSource("HepPDTESSource",
124  pdtFileName = cms.FileInPath('SimGeneral/HepPDTESSource/data/pythiaparticle.tbl')
125 )
126 
127 
128 process.maxEvents = cms.untracked.PSet(
129  input = cms.untracked.int32(-1)
130 )
131 
132