CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dropNonMTSafe.py
Go to the documentation of this file.
2 
3 def _dropFromPaths(process,name):
4  if hasattr(process,name):
5  m = getattr(process,name)
6  for p in process.paths.itervalues():
7  p.remove(m)
8  delattr(process,name)
9 
10 def dropNonMTSafe(process):
11  if hasattr(process, "DTDataIntegrityTask"): del process.DTDataIntegrityTask
12  if hasattr(process, "FastTimerService"): del process.FastTimerService
13  if hasattr(process, "SiStripDetInfoFileReader"): del process.SiStripDetInfoFileReader
14  if hasattr(process, "TkDetMap"): del process.TkDetMap
15  if hasattr(process, "DQM"): del process.DQM
16  if hasattr(process, "PoolDBOutputService"): del process.PoolDBOutputService
17  #drop items dependent on TkDetMap
18  _dropFromPaths(process,"siStripFEDMonitor")
19  _dropFromPaths(process,"SiStripMonitorDigi")
20  _dropFromPaths(process,"SiStripMonitorCluster")
21  _dropFromPaths(process,"SiStripMonitorTrack_ckf")
22  _dropFromPaths(process,"SiStripMonitorClusterBPTX")
23  _dropFromPaths(process,"siStripOfflineAnalyser")
24  _dropFromPaths(process,"SiStripMonitorTrackCommon")
25  _dropFromPaths(process,"SiStripMonitorTrack_hi")
26 
27  process.options = cms.untracked.PSet(numberOfThreads = cms.untracked.uint32(8),
28  sizeOfStackForThreadsInKB = cms.untracked.uint32(10*1024),
29  numberOfStreams = cms.untracked.uint32(0))
30 
31  return process