CMS 3D CMS Logo

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