5 Test Scenario implementation for unittests/development purposes
7 Not for use with data taking
12 from Configuration.DataProcessing.Scenario
import Scenario
28 Returns skeleton process object
31 return cms.Process(
"RECO")
38 Returns skeleton process object
41 return cms.Process(
"Express")
48 Returns skeleton process object
51 return cms.Process(
"ALCARECO")
58 build a DQM Harvesting configuration
60 this method can be used to test an extra scenario, all the
61 ConfigBuilder options can be overwritten by using **args. This will be
62 useful for testing with real jobs.
66 datasetName - aka workflow name for DQMServer, this is the name of the
67 dataset containing the harvested run
68 runNumber - The run being harvested
69 globalTag - The global tag being used
70 inputFiles - The list of LFNs being harvested
73 options = defaultOptions
74 options.scenario =
"cosmics"
75 options.step =
"HARVESTING:dqmHarvesting"
78 options.beamspot =
None
79 options.eventcontent =
None
80 options.name =
"EDMtoMEConvert"
81 options.conditions =
"FrontierConditions_GlobalTag,%s" % globalTag
82 options.arguments =
""
86 options.__dict__.update(args)
88 process = cms.Process(
"HARVESTING")
89 process.source = cms.Source(
"PoolSource")
91 configBuilder.prepare()
96 process.source.processingMode = cms.untracked.string(
'RunsAndLumis')
97 process.source.fileNames = cms.untracked(cms.vstring())
98 process.maxEvents.input = -1
99 process.dqmSaver.workflow = datasetName
100 if args.has_key(
'saveByLumiSection')
and \
101 args.get(
'saveByLumiSection',
''):
102 process.dqmSaver.saveByLumiSection = int(args[
'saveByLumiSection'])
103 if args.has_key(
'referenceFile')
and args.get(
'referenceFile',
''):
104 process.DQMStore.referenceFileName = \
105 cms.untracked.string(args[
'referenceFile'])
114 Returns skeleton process object
117 return cms.Process(
"Skimming")