1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#!/usr/bin/env python3
"""
_relvalmc_
Scenario supporting RelVal MC production
"""
import os
import sys
from Configuration.DataProcessing.Scenario import *
import FWCore.ParameterSet.Config as cms
class relvalmc(Scenario):
def __init__(self):
Scenario.__init__(self)
"""
_relvalmc_
Implement configuration building for RelVal MC production
"""
def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
"""
_dqmHarvesting_
DQM Harvesting for RelVal MC production
"""
options = defaultOptions
options.scenario = "pp"
options.step = "HARVESTING:validationHarvesting+dqmHarvesting"
options.isMC = True
options.isData = False
options.beamspot = None
options.eventcontent = None
options.name = "EDMtoMEConvert"
options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
options.arguments = ""
options.evt_type = ""
options.filein = []
process = cms.Process("HARVESTING", self.eras)
process.source = cms.Source("PoolSource")
configBuilder = ConfigBuilder(options, process = process)
configBuilder.prepare()
#
# customise process for particular job
#
process.source.processingMode = cms.untracked.string('RunsAndLumis')
process.source.fileNames = cms.untracked(cms.vstring())
process.maxEvents.input = -1
process.dqmSaver.workflow = datasetName
return process
|