Go to the documentation of this file.00001
00002 """
00003 _relvalgen_
00004
00005 Scenario supporting RelVal GEN production
00006
00007 """
00008
00009 import os
00010 import sys
00011
00012 from Configuration.DataProcessing.Scenario import Scenario
00013 import FWCore.ParameterSet.Config as cms
00014 from Configuration.PyReleaseValidation.ConfigBuilder import ConfigBuilder
00015 from Configuration.PyReleaseValidation.ConfigBuilder import Options
00016 from Configuration.PyReleaseValidation.ConfigBuilder import defaultOptions
00017 from Configuration.PyReleaseValidation.ConfigBuilder import installFilteredStream
00018
00019 class relvalgen(Scenario):
00020 """
00021 _relvalgen_
00022
00023 Implement configuration building for RelVal GEN production
00024
00025 """
00026
00027
00028 def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
00029 """
00030 _dqmHarvesting_
00031
00032 DQM Harvesting for RelVal GEN production
00033
00034 """
00035 options = defaultOptions
00036 options.scenario = "pp"
00037 options.step = "HARVESTING:genHarvesting"
00038 options.isMC = True
00039 options.isData = False
00040 options.beamspot = None
00041 options.eventcontent = None
00042 options.name = "EDMtoMEConvert"
00043 options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
00044 options.arguments = ""
00045 options.evt_type = ""
00046 options.filein = []
00047 options.harvesting = "AtJobEnd"
00048
00049 process = cms.Process("HARVESTING")
00050 process.source = cms.Source("PoolSource")
00051 configBuilder = ConfigBuilder(options, process = process)
00052 configBuilder.prepare()
00053
00054
00055
00056
00057 process.source.processingMode = cms.untracked.string('RunsAndLumis')
00058 process.source.fileNames = cms.untracked(cms.vstring())
00059 process.maxEvents.input = -1
00060 process.dqmSaver.workflow = datasetName
00061 if args.has_key('referenceFile') and args.get('referenceFile', ''):
00062 process.DQMStore.referenceFileName = \
00063 cms.untracked.string(args['referenceFile'])
00064
00065 return process