File indexing completed on 2023-03-17 10:48:53
0001
0002 """
0003 _relvalmc_
0004
0005 Scenario supporting RelVal MC 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 relvalmc(Scenario):
0017 def __init__(self):
0018 Scenario.__init__(self)
0019 """
0020 _relvalmc_
0021
0022 Implement configuration building for RelVal MC production
0023
0024 """
0025
0026 def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
0027 """
0028 _dqmHarvesting_
0029
0030 DQM Harvesting for RelVal MC production
0031
0032 """
0033 options = defaultOptions
0034 options.scenario = "pp"
0035 options.step = "HARVESTING:validationHarvesting+dqmHarvesting"
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
0046 process = cms.Process("HARVESTING", self.eras)
0047 process.source = cms.Source("PoolSource")
0048 configBuilder = ConfigBuilder(options, process = process)
0049 configBuilder.prepare()
0050
0051
0052
0053
0054 process.source.processingMode = cms.untracked.string('RunsAndLumis')
0055 process.source.fileNames = cms.untracked(cms.vstring())
0056 process.maxEvents.input = -1
0057 process.dqmSaver.workflow = datasetName
0058
0059 return process