CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
Impl.prodmc.prodmc Class Reference
Inheritance diagram for Impl.prodmc.prodmc:

Public Member Functions

def dqmHarvesting
 

Detailed Description

_prodmc_

Implement configuration building for MC production 

Definition at line 20 of file prodmc.py.

Member Function Documentation

def Impl.prodmc.prodmc.dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_

DQM Harvesting for MC production

Definition at line 28 of file prodmc.py.

28 
29  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
30  """
31  _dqmHarvesting_
32 
33  DQM Harvesting for MC production
34 
35  """
36  options = defaultOptions
37  options.scenario = "pp"
38  options.step = "HARVESTING:validationprodHarvesting"
39  options.isMC = True
40  options.isData = False
41  options.beamspot = None
42  options.eventcontent = None
43  options.name = "EDMtoMEConvert"
44  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
45  options.arguments = ""
46  options.evt_type = ""
47  options.filein = []
48 
49  process = cms.Process("HARVESTING")
50  if args.get('newDQMIO', False):
51  process.source = cms.Source("DQMRootSource")
52  else:
53  process.source = cms.Source("PoolSource")
54  configBuilder = ConfigBuilder(options, process = process)
55  configBuilder.prepare()
56 
57  #
58  # customise process for particular job
59  #
60  process.source.processingMode = cms.untracked.string('RunsAndLumis')
61  process.source.fileNames = cms.untracked(cms.vstring())
62  process.maxEvents.input = -1
63  process.dqmSaver.workflow = datasetName
64  if args.has_key('referenceFile') and args.get('referenceFile', ''):
65  process.DQMStore.referenceFileName = \
66  cms.untracked.string(args['referenceFile'])
67 
68  return process