CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules 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  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
Impl.preprodmc.preprodmc.__init__
def __init__(self)
Definition: preprodmc.py:17
Impl.preprodmc.preprodmc
Definition: preprodmc.py:16
ConfigBuilder
Definition: ConfigBuilder.py:1
Impl.preprodmc.preprodmc.dqmHarvesting
def dqmHarvesting(self, datasetName, runNumber, globalTag, **args)
Definition: preprodmc.py:26
Scenario
Definition: Scenario.py:1
Scenario