CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
preprodmc.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
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  def __init__(self):
18  Scenario.__init__(self)
19  """
20  _preprodmc_
21 
22  Implement configuration building for RelVal MC production
23 
24  """
25 
26  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
27  """
28  _dqmHarvesting_
29 
30  DQM Harvesting for pre-production
31 
32  """
33  options = defaultOptions
34  options.scenario = "pp"
35  options.step = "HARVESTING:validationpreprodHarvesting+dqmHarvestingPOG"
36  options.isMC = True
37  options.isData = False
38  options.beamspot = None
39  options.eventcontent = None
40  options.name = "EDMtoMEConvert"
41  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
42  options.arguments = ""
43  options.evt_type = ""
44  options.filein = []
45 
46  process = cms.Process("HARVESTING", self.eras)
47  if args.get('newDQMIO', False):
48  process.source = cms.Source("DQMRootSource")
49  else:
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 
62  return process