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.
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  verbose = cms.untracked.bool(False)
43 )
44 
45 
46 process.pfElectronBenchmarkGeneric = cms.EDAnalyzer("GenericBenchmarkAnalyzer",
47  maxDeltaPhi = cms.double(0.5),
48  BenchmarkLabel = cms.string('PFlowElectrons'),
49  OnlyTwoJets = cms.bool(False),
50  maxEta = cms.double(2.5),
51  minEta = cms.double(-1),
52  recPt = cms.double(2.0),
53  minDeltaPhi = cms.double(-0.5),
54  PlotAgainstRecoQuantities = cms.bool(False),
55  minDeltaEt = cms.double(-100.0),
56  OutputFile = cms.untracked.string('benchmark.root'),
57  StartFromGen = cms.bool(False),
58  deltaRMax = cms.double(0.05),
59  maxDeltaEt = cms.double(50.0),
60  InputTruthLabel = cms.InputTag("gensource"),
61  InputRecoLabel = cms.InputTag("pfAllElectrons"),
62  doMetPlots = cms.bool(False)
63 )
64 
65 
66 process.pfNoPileUpSequence = cms.Sequence(process.pfPileUp+process.pfNoPileUp)
67 
68 
69 process.electronBenchmarkGeneric = cms.Sequence(process.pfNoPileUpSequence+process.pfAllElectrons+process.gensource+process.pfElectronBenchmarkGeneric)
70 
71 
72 process.p = cms.Path(process.electronBenchmarkGeneric)
73 
74 
75 process.MessageLogger = cms.Service("MessageLogger",
76  suppressInfo = cms.untracked.vstring(),
77  debugs = cms.untracked.PSet(
78  placeholder = cms.untracked.bool(True)
79  ),
80  suppressDebug = cms.untracked.vstring(),
81  cout = cms.untracked.PSet(
82  placeholder = cms.untracked.bool(True)
83  ),
84  cerr_stats = cms.untracked.PSet(
85  threshold = cms.untracked.string('WARNING'),
86  output = cms.untracked.string('cerr'),
87  optionalPSet = cms.untracked.bool(True)
88  ),
89  warnings = cms.untracked.PSet(
90  placeholder = cms.untracked.bool(True)
91  ),
92  default = cms.untracked.PSet(
93 
94  ),
95  statistics = cms.untracked.vstring('cerr_stats'),
96  cerr = cms.untracked.PSet(
97  INFO = cms.untracked.PSet(
98  limit = cms.untracked.int32(0)
99  ),
100  noTimeStamps = cms.untracked.bool(False),
101  FwkReport = cms.untracked.PSet(
102  reportEvery = cms.untracked.int32(100),
103  optionalPSet = cms.untracked.bool(True),
104  limit = cms.untracked.int32(10000000)
105  ),
106  default = cms.untracked.PSet(
107  limit = cms.untracked.int32(10000000)
108  ),
109  Root_NoDictionary = cms.untracked.PSet(
110  optionalPSet = cms.untracked.bool(True),
111  limit = cms.untracked.int32(0)
112  ),
113  threshold = cms.untracked.string('INFO'),
114  FwkJob = cms.untracked.PSet(
115  optionalPSet = cms.untracked.bool(True),
116  limit = cms.untracked.int32(0)
117  ),
118  FwkSummary = cms.untracked.PSet(
119  reportEvery = cms.untracked.int32(1),
120  optionalPSet = cms.untracked.bool(True),
121  limit = cms.untracked.int32(10000000)
122  ),
123  optionalPSet = cms.untracked.bool(True)
124  ),
125  FrameworkJobReport = cms.untracked.PSet(
126  default = cms.untracked.PSet(
127  limit = cms.untracked.int32(0)
128  ),
129  optionalPSet = cms.untracked.bool(True),
130  FwkJob = cms.untracked.PSet(
131  optionalPSet = cms.untracked.bool(True),
132  limit = cms.untracked.int32(10000000)
133  )
134  ),
135  suppressWarning = cms.untracked.vstring(),
136  errors = cms.untracked.PSet(
137  placeholder = cms.untracked.bool(True)
138  ),
139  destinations = cms.untracked.vstring('warnings',
140  'errors',
141  'infos',
142  'debugs',
143  'cout',
144  'cerr'),
145  debugModules = cms.untracked.vstring(),
146  infos = cms.untracked.PSet(
147  optionalPSet = cms.untracked.bool(True),
148  Root_NoDictionary = cms.untracked.PSet(
149  optionalPSet = cms.untracked.bool(True),
150  limit = cms.untracked.int32(0)
151  ),
152  placeholder = cms.untracked.bool(True)
153  ),
154  categories = cms.untracked.vstring('FwkJob',
155  'FwkReport',
156  'FwkSummary',
157  'Root_NoDictionary'),
158  fwkJobReports = cms.untracked.vstring('FrameworkJobReport')
159 )
160 
161 
162 process.DQM = cms.Service("DQM",
163  filter = cms.untracked.string(''),
164  publishFrequency = cms.untracked.double(5.0),
165  collectorHost = cms.untracked.string('localhost'),
166  collectorPort = cms.untracked.int32(9090),
167  debug = cms.untracked.bool(False)
168 )
169 
170 
171 process.DQMStore = cms.Service("DQMStore",
172  verboseQT = cms.untracked.int32(0),
173  referenceFileName = cms.untracked.string(''),
174  verbose = cms.untracked.int32(0),
175  collateHistograms = cms.untracked.bool(False)
176 )
177 
178 
179 process.HepPDTESSource = cms.ESSource("HepPDTESSource",
180  pdtFileName = cms.FileInPath('SimGeneral/HepPDTESSource/data/pythiaparticle.tbl')
181 )
182 
183 
184 process.maxEvents = cms.untracked.PSet(
185  input = cms.untracked.int32(-1)
186 )
187 
188