CMS 3D CMS Logo

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