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 
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 
19 
21  """
22  _relvalmcfs_
23 
24  Implement configuration building for RelVal MC FastSim production
25 
26  """
27 
28 
29  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
30  """
31  _dqmHarvesting_
32 
33  DQM Harvesting for RelVal MC production
34 
35  """
36  options = defaultOptions
37  options.scenario = "pp"
38  options.step = "HARVESTING:validationHarvestingFS"
39  options.isMC = True
40  options.isData = False
41  options.beamspot = None
42  options.name = "EDMtoMEConvert"
43  options.conditions = globalTag
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