CMS 3D CMS Logo

Public Member Functions

Impl::prodmc::prodmc Class Reference

Inherits Configuration::DataProcessing::Scenario::Scenario.

List of all members.

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.

00024                                                                       :
00025         """
00026         _dqmHarvesting_
00027 
00028         DQM Harvesting for MC production
00029 
00030         """
00031         options = defaultOptions
00032         options.scenario = "pp"
00033         options.step = "HARVESTING:validationprodHarvesting"
00034         options.isMC = True
00035         options.isData = False
00036         options.beamspot = None
00037         options.eventcontent = None
00038         options.name = "EDMtoMEConvert"
00039         options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
00040         options.arguments = ""
00041         options.evt_type = ""
00042         options.filein = []
00043  
00044         process = cms.Process("HARVESTING")
00045         if args.get('newDQMIO', False):
00046             process.source = cms.Source("DQMRootSource")
00047         else:
00048             process.source = cms.Source("PoolSource")
00049         configBuilder = ConfigBuilder(options, process = process)
00050         configBuilder.prepare()
00051 
00052         #
00053         # customise process for particular job
00054         #
00055         process.source.processingMode = cms.untracked.string('RunsAndLumis')
00056         process.source.fileNames = cms.untracked(cms.vstring())
00057         process.maxEvents.input = -1
00058         process.dqmSaver.workflow = datasetName
00059         if args.has_key('referenceFile') and args.get('referenceFile', ''):
00060             process.DQMStore.referenceFileName = \
00061                                 cms.untracked.string(args['referenceFile'])
00062         
00063         return process