test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
Impl.prodmc.prodmc Class Reference
Inheritance diagram for Impl.prodmc.prodmc:

Public Member Functions

def __init__
 
def dqmHarvesting
 

Detailed Description

Definition at line 15 of file prodmc.py.

Constructor & Destructor Documentation

def Impl.prodmc.prodmc.__init__ (   self)

Definition at line 16 of file prodmc.py.

16 
17  def __init__(self):
Scenario.__init__(self)

Member Function Documentation

def Impl.prodmc.prodmc.dqmHarvesting (   self,
  datasetName,
  runNumber,
  globalTag,
  args 
)
_dqmHarvesting_

DQM Harvesting for MC production

Definition at line 25 of file prodmc.py.

References Impl.cosmicsEra_Run2_2016.cosmicsEra_Run2_2016.eras, Impl.cosmicsEra_Run2_25ns.cosmicsEra_Run2_25ns.eras, Impl.cosmicsEra_Run2_50ns.cosmicsEra_Run2_50ns.eras, Impl.hcalnzsEra_Run2_2016.hcalnzsEra_Run2_2016.eras, Impl.hcalnzsEra_Run2_25ns.hcalnzsEra_Run2_25ns.eras, Impl.HeavyIonsEra_Run2_HI.HeavyIonsEra_Run2_HI.eras, Impl.ppEra_Run2_25ns.ppEra_Run2_25ns.eras, Impl.ppEra_Run2_2016.ppEra_Run2_2016.eras, Impl.pplowpuEra_Run2_2016.pplowpuEra_Run2_2016.eras, Impl.ppEra_Run2_50ns.ppEra_Run2_50ns.eras, Impl.ppEra_Run2_2016_pA.ppEra_Run2_2016_pA.eras, Impl.ppEra_Run2_2016_trackingLowPU.ppEra_Run2_2016_trackingLowPU.eras, and Scenario.Scenario.eras.

25 
26  def dqmHarvesting(self, datasetName, runNumber, globalTag, **args):
27  """
28  _dqmHarvesting_
29 
30  DQM Harvesting for MC production
31 
32  """
33  options = defaultOptions
34  options.scenario = "pp"
35  options.step = "HARVESTING:validationprodHarvesting"
36  options.isMC = True
37  options.isData = False
38  options.beamspot = None
39  options.eventcontent = None
40  options.name = "EDMtoMEConvert"
41  options.conditions = "FrontierConditions_GlobalTag,%s" % globalTag
42  options.arguments = ""
43  options.evt_type = ""
44  options.filein = []
45 
46  process = cms.Process("HARVESTING", self.eras)
47  if args.get('newDQMIO', False):
48  process.source = cms.Source("DQMRootSource")
49  else:
50  process.source = cms.Source("PoolSource")
51  configBuilder = ConfigBuilder(options, process = process)
52  configBuilder.prepare()
53 
54  #
55  # customise process for particular job
56  #
57  process.source.processingMode = cms.untracked.string('RunsAndLumis')
58  process.source.fileNames = cms.untracked(cms.vstring())
59  process.maxEvents.input = -1
60  process.dqmSaver.workflow = datasetName
61  if 'referenceFile' in args and args.get('referenceFile', ''):
62  process.DQMStore.referenceFileName = \
63  cms.untracked.string(args['referenceFile'])
64 
65  return process