Main Page
Namespaces
Classes
Package Documentation
SimG4Core
Application
python
customiseSequentialSim.py
Go to the documentation of this file.
1
import
FWCore.ParameterSet.Config
as
cms
2
import
six
3
4
def
customiseSequentialSim
(process):
5
# Set numberOfStreams to allow cmsRun/cmsDriver.py -n to control
6
# also the number of streams
7
8
for
label, prod
in
six.iteritems(process.producers_()):
9
if
prod.type_() ==
"OscarMTProducer"
:
10
# ugly hack
11
prod.__dict__[
'_TypedParameterizable__type'
] =
"OscarProducer"
12
13
return
process
14
customiseSequentialSim.customiseSequentialSim
def customiseSequentialSim(process)
Definition:
customiseSequentialSim.py:4
Generated for CMSSW Reference Manual by
1.8.11