CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
relvalmc.py
Go to the documentation of this file.
1 #!/usr/bin/env python3
2 """
3 _relvalmc_
4 
5 Scenario supporting RelVal MC 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  _relvalmc_
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 RelVal MC production
31 
32  """
33  options = defaultOptions
34  options.scenario = "pp"
35  options.step = "HARVESTING:validationHarvesting+dqmHarvesting"
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  process.source = cms.Source("PoolSource")
48  configBuilder = ConfigBuilder(options, process = process)
49  configBuilder.prepare()
50 
51  #
52  # customise process for particular job
53  #
54  process.source.processingMode = cms.untracked.string('RunsAndLumis')
55  process.source.fileNames = cms.untracked(cms.vstring())
56  process.maxEvents.input = -1
57  process.dqmSaver.workflow = datasetName
58 
59  return process