CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/Configuration/DataProcessing/python/Impl/relvalmcfs.py

Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 """
00003 _relvalmcfs_
00004 
00005 Scenario supporting RelVal MC FastSim 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 
00020 class relvalmcfs(Scenario):
00021     """
00022     _relvalmcfs_
00023 
00024     Implement configuration building for RelVal MC FastSim production 
00025 
00026     """
00027 
00028 
00029     def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
00030         """
00031         _dqmHarvesting_
00032 
00033         DQM Harvesting for RelVal MC production
00034 
00035         """
00036         options = defaultOptions
00037         options.scenario = "pp"
00038         options.step = "HARVESTING:validationHarvestingFS"
00039         options.isMC = True
00040         options.isData = False
00041         options.beamspot = None
00042         options.name = "EDMtoMEConvert"
00043         options.conditions = globalTag
00044  
00045         process = cms.Process("HARVESTING")
00046         process.source = cms.Source("PoolSource")
00047         configBuilder = ConfigBuilder(options, process = process)
00048         configBuilder.prepare()
00049 
00050         #
00051         # customise process for particular job
00052         #
00053         process.source.processingMode = cms.untracked.string('RunsAndLumis')
00054         process.source.fileNames = cms.untracked(cms.vstring())
00055         process.maxEvents.input = -1
00056         process.dqmSaver.workflow = datasetName
00057         if args.has_key('referenceFile') and args.get('referenceFile', ''):
00058             process.DQMStore.referenceFileName = \
00059                                 cms.untracked.string(args['referenceFile'])
00060         
00061         return process