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