CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
preprodmc.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 """
3 _preprodmc_
4 
5 Scenario supporting pre-production
6 
7 """
8 
9 import os
10 import sys
11 
13 import FWCore.ParameterSet.Config as cms
14 
15 
17  """
18  _preprodmc_
19 
20  Implement configuration building for RelVal MC production
21 
22  """
23 
24  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
25  """
26  _dqmHarvesting_
27 
28  DQM Harvesting for pre-production
29 
30  """
31  options = defaultOptions
32  options.scenario = "pp"
33  options.step = "HARVESTING:validationpreprodHarvesting+dqmHarvestingPOG"
34  options.isMC = True
35  options.isData = False
36  options.beamspot = None
37  options.eventcontent = None
38  options.name = "EDMtoMEConvert"
39  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
40  options.arguments = ""
41  options.evt_type = ""
42  options.filein = []
43 
44  process = cms.Process("HARVESTING")
45  if args.get('newDQMIO', False):
46  process.source = cms.Source("DQMRootSource")
47  else:
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 args.has_key('referenceFile') and args.get('referenceFile', ''):
60  process.DQMStore.referenceFileName = \
61  cms.untracked.string(args['referenceFile'])
62 
63  return process