File indexing completed on 2024-04-06 12:03:31
0001
0002 """
0003 _preprodmc_
0004
0005 Scenario supporting pre-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 preprodmc(Scenario):
0017 def __init__(self):
0018 Scenario.__init__(self)
0019 """
0020 _preprodmc_
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 pre-production
0031
0032 """
0033 options = defaultOptions
0034 options.scenario = "pp"
0035 options.step = "HARVESTING:validationpreprodHarvesting+dqmHarvestingPOG"
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 if args.get('newDQMIO', False):
0048 process.source = cms.Source("DQMRootSource")
0049 else:
0050 process.source = cms.Source("PoolSource")
0051 configBuilder = ConfigBuilder(options, process = process)
0052 configBuilder.prepare()
0053
0054
0055
0056
0057 process.source.processingMode = cms.untracked.string('RunsAndLumis')
0058 process.source.fileNames = cms.untracked(cms.vstring())
0059 process.maxEvents.input = -1
0060 process.dqmSaver.workflow = datasetName
0061
0062 return process