CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
relvalgen.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 """
3 _relvalgen_
4 
5 Scenario supporting RelVal GEN production
6 
7 """
8 
9 import os
10 import sys
11 
13 import FWCore.ParameterSet.Config as cms
14 
16  """
17  _relvalgen_
18 
19  Implement configuration building for RelVal GEN production
20 
21  """
22 
23 
24  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
25  """
26  _dqmHarvesting_
27 
28  DQM Harvesting for RelVal GEN production
29 
30  """
31  options = defaultOptions
32  options.scenario = "pp"
33  options.step = "HARVESTING:genHarvesting"
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  options.harvesting = "AtJobEnd"
44 
45  process = cms.Process("HARVESTING")
46  process.source = cms.Source("PoolSource")
47  configBuilder = ConfigBuilder(options, process = process)
48  configBuilder.prepare()
49 
50  #
51  # customise process for particular job
52  #
53  process.source.processingMode = cms.untracked.string('RunsAndLumis')
54  process.source.fileNames = cms.untracked(cms.vstring())
55  process.maxEvents.input = -1
56  process.dqmSaver.workflow = datasetName
57  if args.has_key('referenceFile') and args.get('referenceFile', ''):
58  process.DQMStore.referenceFileName = \
59  cms.untracked.string(args['referenceFile'])
60 
61  return process