CMS 3D CMS Logo

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

Functions

def _dropFromPaths
 
def dropNonMTSafe
 

Function Documentation

def dropNonMTSafe._dropFromPaths (   process,
  name 
)
private

Definition at line 3 of file dropNonMTSafe.py.

3 
4 def _dropFromPaths(process,name):
5  if hasattr(process,name):
6  m = getattr(process,name)
7  for p in process.paths.itervalues():
8  p.remove(m)
9  delattr(process,name)
def dropNonMTSafe.dropNonMTSafe (   process)

Definition at line 10 of file dropNonMTSafe.py.

10 
11 def dropNonMTSafe(process):
12  process.options = cms.untracked.PSet(numberOfThreads = cms.untracked.uint32(4),
13  sizeOfStackForThreadsInKB = cms.untracked.uint32(10*1024),
14  numberOfStreams = cms.untracked.uint32(0))
15  if ( x for x in process.producers.itervalues() if x.type_() == "OscarProducer" ) :
16  from SimG4Core.Application.customiseMultithreadedSim import customiseMultithreadedSim
18 
19  return process