Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
SimG4Core
Application
python
customiseMultithreadedSim.py
Go to the documentation of this file.
1
import
FWCore.ParameterSet.Config
as
cms
2
3
def
customiseMultithreadedSim
(process):
4
# Set numberOfStreams to allow cmsRun/cmsDriver.py -n to control
5
# also the number of streams
6
if
not
hasattr(process,
"options"
):
7
process.options = cms.PSet()
8
if
not
hasattr(process.options,
"numberOfStreams"
):
9
process.options.numberOfStreams = cms.untracked.uint32(0)
10
11
for
label, prod
in
process.producers_().iteritems():
12
if
prod.type_() ==
"OscarProducer"
:
13
# ugly hack
14
prod.__dict__[
'_TypedParameterizable__type'
] =
"OscarMTProducer"
15
16
return
process
17
Config
customiseMultithreadedSim.customiseMultithreadedSim
def customiseMultithreadedSim
Definition:
customiseMultithreadedSim.py:3
Generated for CMSSW Reference Manual by
1.8.5