Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-07 22:32:55

0001 #!/usr/bin/env python3
0002 """
0003 _relvalmcfs_
0004 
0005 Scenario supporting RelVal MC FastSim production
0006 
0007 """
0008 
0009 import os
0010 import sys
0011 
0012 from Configuration.DataProcessing.Scenario import *
0013 import FWCore.ParameterSet.Config as cms
0014 
0015 
0016 class relvalmcfs(Scenario):
0017     def __init__(self):
0018         Scenario.__init__(self)
0019     """
0020     _relvalmcfs_
0021 
0022     Implement configuration building for RelVal MC FastSim production 
0023 
0024     """
0025 
0026 
0027     def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
0028         """
0029         _dqmHarvesting_
0030 
0031         DQM Harvesting for RelVal MC production
0032 
0033         """
0034         options = defaultOptions
0035         options.scenario = "pp"
0036         options.step = "HARVESTING:validationHarvestingFS"
0037         options.isMC = True
0038         options.isData = False
0039         options.beamspot = None
0040         options.name = "EDMtoMEConvert"
0041         options.conditions = globalTag
0042  
0043         process = cms.Process("HARVESTING", self.eras)
0044         process.source = cms.Source("PoolSource")
0045         configBuilder = ConfigBuilder(options, process = process)
0046         configBuilder.prepare()
0047 
0048         #
0049         # customise process for particular job
0050         #
0051         process.source.processingMode = cms.untracked.string('RunsAndLumis')
0052         process.source.fileNames = cms.untracked(cms.vstring())
0053         process.maxEvents.input = -1
0054         process.dqmSaver.workflow = datasetName
0055         
0056         return process