test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
customiseMultithreadedSim Namespace Reference

Functions

def customiseMultithreadedSim
 

Function Documentation

def customiseMultithreadedSim.customiseMultithreadedSim (   process)

Definition at line 3 of file customiseMultithreadedSim.py.

3 
4 def customiseMultithreadedSim(process):
5  # Set numberOfStreams to allow cmsRun/cmsDriver.py -n to control
6  # also the number of streams
7  if not hasattr(process, "options"):
8  process.options = cms.PSet()
9  if not hasattr(process.options, "numberOfStreams"):
10  process.options.numberOfStreams = cms.untracked.uint32(0)
11 
12  for label, prod in process.producers_().iteritems():
13  if prod.type_() == "OscarProducer":
14  # ugly hack
15  prod.__dict__['_TypedParameterizable__type'] = "OscarMTProducer"
16 
17  return process
18