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