CMS 3D CMS Logo

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