CMS 3D CMS Logo

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

Functions

def customizeHLTforHighPU
 

Function Documentation

def customizeHLTforHighPU.customizeHLTforHighPU (   process)

Definition at line 5 of file customizeHLTforHighPU.py.

References common.producers_by_type().

5 
6 def customizeHLTforHighPU(process):
7  for module in producers_by_type(process,"SiPixelClusterProducer"):
8  if hasattr(module, "maxNumberOfClusters"):
9  module.maxNumberOfClusters = cms.int32( 80000 ) # default: 20000
10 
11  for module in producers_by_type(process,"SeedGeneratorFromRegionHitsEDProducer"):
12  if hasattr(module,"OrderedHitsFactoryPSet"):
13  OrderedHitsFactory_pset = module.OrderedHitsFactoryPSet
14  if hasattr(OrderedHitsFactory_pset,"GeneratorPSet"):
15  Generator_pset = OrderedHitsFactory_pset.GeneratorPSet
16  if hasattr(Generator_pset,"maxElement"):
17 # if getattr(Generator_pset,"maxElement") != 100000:
18 # print module, Generator_pset.maxElement
19  Generator_pset.maxElement = 100000 # default 100000 for pp modules, 1000000 for PA modules
20 
21  if hasattr(module,"ClusterCheckPSet"):
22  ClusterCheck_pset = module.ClusterCheckPSet
23  if hasattr(ClusterCheck_pset,"MaxNumberOfCosmicClusters"):
24 # if getattr(ClusterCheck_pset,"MaxNumberOfCosmicClusters") != 800000:
25 # print module,ClusterCheck_pset.MaxNumberOfCosmicClusters
26  ClusterCheck_pset.MaxNumberOfCosmicClusters = 800000 # default 50000 for pp modules, 400000 for PA modules
27  if hasattr(ClusterCheck_pset,"MaxNumberOfPixelClusters"):
28 # if getattr(ClusterCheck_pset,"MaxNumberOfPixelClusters") != 80000:
29 # print module,ClusterCheck_pset.MaxNumberOfPixelClusters
30  ClusterCheck_pset.MaxNumberOfPixelClusters = 80000 # default 10000 for pp modules, 40000 for PA modules
31  return process
def producers_by_type
Definition: common.py:3