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 _relvalgen_
0004 
0005 Scenario supporting RelVal GEN 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 class relvalgen(Scenario):
0016     def __init__(self):
0017         Scenario.__init__(self)
0018     """
0019     _relvalgen_
0020 
0021     Implement configuration building for RelVal GEN production 
0022 
0023     """
0024 
0025 
0026     def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
0027         """
0028         _dqmHarvesting_
0029 
0030         DQM Harvesting for RelVal GEN production
0031 
0032         """
0033         options = defaultOptions
0034         options.scenario = "pp"
0035         options.step = "HARVESTING:genHarvesting"
0036         options.isMC = True
0037         options.isData = False
0038         options.beamspot = None
0039         options.eventcontent = None
0040         options.name = "EDMtoMEConvert"
0041         options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
0042         options.arguments = ""
0043         options.evt_type = ""
0044         options.filein = []
0045         options.harvesting = "AtJobEnd"
0046  
0047         process = cms.Process("HARVESTING", self.eras)
0048         process.source = cms.Source("PoolSource")
0049         configBuilder = ConfigBuilder(options, process = process)
0050         configBuilder.prepare()
0051 
0052         #
0053         # customise process for particular job
0054         #
0055         process.source.processingMode = cms.untracked.string('RunsAndLumis')
0056         process.source.fileNames = cms.untracked(cms.vstring())
0057         process.maxEvents.input = -1
0058         process.dqmSaver.workflow = datasetName
0059         
0060         return process