test
CMS 3D CMS Logo

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

Functions

def analyzers_by_type
 
def customizeHLTforHighPU
 
def esproducers_by_type
 
def filters_by_type
 
def producers_by_type
 

Function Documentation

def customizeHLTforHighPU.analyzers_by_type (   process,
  types 
)

Definition at line 9 of file customizeHLTforHighPU.py.

9 
10 def analyzers_by_type(process, *types):
11  return (analyzer for analyzer in process._Process__analyzers.values() if analyzer._TypedParameterizable__type in types)
def customizeHLTforHighPU.customizeHLTforHighPU (   process)

Definition at line 17 of file customizeHLTforHighPU.py.

References producers_by_type().

17 
18 def customizeHLTforHighPU(process):
19  for module in producers_by_type(process,"SiPixelClusterProducer"):
20  if hasattr(module, "maxNumberOfClusters"):
21  module.maxNumberOfClusters = cms.int32( 80000 ) # default: 20000
22 
23  for module in producers_by_type(process,"SeedGeneratorFromRegionHitsEDProducer"):
24  if hasattr(module,"OrderedHitsFactoryPSet"):
25  OrderedHitsFactory_pset = module.OrderedHitsFactoryPSet
26  if hasattr(OrderedHitsFactory_pset,"GeneratorPSet"):
27  Generator_pset = OrderedHitsFactory_pset.GeneratorPSet
28  if hasattr(Generator_pset,"maxElement"):
29 # if getattr(Generator_pset,"maxElement") != 100000:
30 # print module, Generator_pset.maxElement
31  Generator_pset.maxElement = 100000 # default 100000 for pp modules, 1000000 for PA modules
32 
33  if hasattr(module,"ClusterCheckPSet"):
34  ClusterCheck_pset = module.ClusterCheckPSet
35  if hasattr(ClusterCheck_pset,"MaxNumberOfCosmicClusters"):
36 # if getattr(ClusterCheck_pset,"MaxNumberOfCosmicClusters") != 800000:
37 # print module,ClusterCheck_pset.MaxNumberOfCosmicClusters
38  ClusterCheck_pset.MaxNumberOfCosmicClusters = 800000 # default 50000 for pp modules, 400000 for PA modules
39  if hasattr(ClusterCheck_pset,"MaxNumberOfPixelClusters"):
40 # if getattr(ClusterCheck_pset,"MaxNumberOfPixelClusters") != 80000:
41 # print module,ClusterCheck_pset.MaxNumberOfPixelClusters
42  ClusterCheck_pset.MaxNumberOfPixelClusters = 80000 # default 10000 for pp modules, 40000 for PA modules
43  return process
def customizeHLTforHighPU.esproducers_by_type (   process,
  types 
)

Definition at line 12 of file customizeHLTforHighPU.py.

12 
13 def esproducers_by_type(process, *types):
14  return (module for module in process._Process__esproducers.values() if module._TypedParameterizable__type in types)
15 
16 #
# CMSSW version specific customizations
def customizeHLTforHighPU.filters_by_type (   process,
  types 
)

Definition at line 7 of file customizeHLTforHighPU.py.

7 
8 def filters_by_type(process, *types):
return (filter for filter in process._Process__filters.values() if filter._TypedParameterizable__type in types)
def customizeHLTforHighPU.producers_by_type (   process,
  types 
)

Definition at line 5 of file customizeHLTforHighPU.py.

Referenced by customizeHLTforHighPU().

5 
6 def producers_by_type(process, *types):
return (module for module in process._Process__producers.values() if module._TypedParameterizable__type in types)