CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
prodmc.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 """
3 _prodmc_
4 
5 Scenario supporting MC production
6 
7 """
8 
9 import os
10 import sys
11 
13 import FWCore.ParameterSet.Config as cms
14 
16  """
17  _prodmc_
18 
19  Implement configuration building for MC production
20 
21  """
22 
23  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
24  """
25  _dqmHarvesting_
26 
27  DQM Harvesting for MC production
28 
29  """
30  options = defaultOptions
31  options.scenario = "pp"
32  options.step = "HARVESTING:validationprodHarvesting"
33  options.isMC = True
34  options.isData = False
35  options.beamspot = None
36  options.eventcontent = None
37  options.name = "EDMtoMEConvert"
38  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
39  options.arguments = ""
40  options.evt_type = ""
41  options.filein = []
42 
43  process = cms.Process("HARVESTING")
44  if args.get('newDQMIO', False):
45  process.source = cms.Source("DQMRootSource")
46  else:
47  process.source = cms.Source("PoolSource")
48  configBuilder = ConfigBuilder(options, process = process)
49  configBuilder.prepare()
50 
51  #
52  # customise process for particular job
53  #
54  process.source.processingMode = cms.untracked.string('RunsAndLumis')
55  process.source.fileNames = cms.untracked(cms.vstring())
56  process.maxEvents.input = -1
57  process.dqmSaver.workflow = datasetName
58  if args.has_key('referenceFile') and args.get('referenceFile', ''):
59  process.DQMStore.referenceFileName = \
60  cms.untracked.string(args['referenceFile'])
61 
62  return process