5 Test Scenario implementation for unittests/development purposes
7 Not for use with data taking
13 import FWCore.ParameterSet.Config
as cms
17 Scenario.__init__(self)
30 Returns skeleton process object
33 return cms.Process(
"RECO", self.eras)
40 Returns skeleton process object
43 return cms.Process(
"Express", self.eras)
50 Returns skeleton process object
53 return cms.Process(
"ALCARECO", self.eras)
60 build a DQM Harvesting configuration
62 this method can be used to test an extra scenario, all the
63 ConfigBuilder options can be overwritten by using **args. This will be
64 useful for testing with real jobs.
68 datasetName - aka workflow name for DQMServer, this is the name of the
69 dataset containing the harvested run
70 runNumber - The run being harvested
71 globalTag - The global tag being used
72 inputFiles - The list of LFNs being harvested
75 options = defaultOptions
76 options.scenario =
"cosmics"
77 options.step =
"HARVESTING:dqmHarvesting"
80 options.beamspot =
None
81 options.eventcontent =
None
82 options.name =
"EDMtoMEConvert"
83 options.conditions =
"FrontierConditions_GlobalTag,%s" % globalTag
84 options.arguments =
""
88 options.__dict__.update(args)
90 process = cms.Process(
"HARVESTING", self.eras)
91 process.source = cms.Source(
"PoolSource")
93 configBuilder.prepare()
98 process.source.processingMode = cms.untracked.string(
'RunsAndLumis')
99 process.source.fileNames = cms.untracked(cms.vstring())
100 process.maxEvents.input = -1
101 process.dqmSaver.workflow = datasetName
102 if 'saveByLumiSection' in args
and \
103 args.get(
'saveByLumiSection',
''):
104 process.dqmSaver.saveByLumiSection =
int(args[
'saveByLumiSection'])
113 Returns skeleton process object
116 return cms.Process(
"Skimming", self.eras)