test
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  def __init__(self):
17  Scenario.__init__(self)
18  """
19  _relvalgen_
20 
21  Implement configuration building for RelVal GEN production
22 
23  """
24 
25 
26  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
27  """
28  _dqmHarvesting_
29 
30  DQM Harvesting for RelVal GEN production
31 
32  """
33  options = defaultOptions
34  options.scenario = "pp"
35  options.step = "HARVESTING:genHarvesting"
36  options.isMC = True
37  options.isData = False
38  options.beamspot = None
39  options.eventcontent = None
40  options.name = "EDMtoMEConvert"
41  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
42  options.arguments = ""
43  options.evt_type = ""
44  options.filein = []
45  options.harvesting = "AtJobEnd"
46 
47  process = cms.Process("HARVESTING", self.eras)
48  process.source = cms.Source("PoolSource")
49  configBuilder = ConfigBuilder(options, process = process)
50  configBuilder.prepare()
51 
52  #
53  # customise process for particular job
54  #
55  process.source.processingMode = cms.untracked.string('RunsAndLumis')
56  process.source.fileNames = cms.untracked(cms.vstring())
57  process.maxEvents.input = -1
58  process.dqmSaver.workflow = datasetName
59  if 'referenceFile' in args and args.get('referenceFile', ''):
60  process.DQMStore.referenceFileName = \
61  cms.untracked.string(args['referenceFile'])
62 
63  return process