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