test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
customiseSequentialSim.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 def customiseSequentialSim(process):
4  # Set numberOfStreams to allow cmsRun/cmsDriver.py -n to control
5  # also the number of streams
6 
7  for label, prod in process.producers_().iteritems():
8  if prod.type_() == "OscarMTProducer":
9  # ugly hack
10  prod.__dict__['_TypedParameterizable__type'] = "OscarProducer"
11 
12  return process
13