CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
Impl.prodmc.prodmc Class Reference
Inheritance diagram for Impl.prodmc.prodmc:

Public Member Functions

def dqmHarvesting
 

Detailed Description

_prodmc_

Implement configuration building for MC production 

Definition at line 15 of file prodmc.py.

Member Function Documentation

def Impl.prodmc.prodmc.dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_

DQM Harvesting for MC production

Definition at line 23 of file prodmc.py.

23 
24  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
25  """
26  _dqmHarvesting_
27 
28  DQM Harvesting for MC production
29 
30  """
31  options = defaultOptions
32  options.scenario = "pp"
33  options.step = "HARVESTING:validationprodHarvesting"
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