3 _cut =
"strip < 800000 && pixel < 80000 && (strip < 50000 + 10*pixel) && (pixel < 5000 + strip/7.)" 7 for module
in process._Process__producers.values():
8 cppType = module._TypedParameterizable__type
11 if cppType ==
"ClusterCheckerEDProducer":
12 module.MaxNumberOfPixelClusters = _maxPixel
14 if hasattr(module,
"ClusterCheckPSet"):
15 module.ClusterCheckPSet.MaxNumberOfPixelClusters = _maxPixel
17 if hasattr(module.ClusterCheckPSet,
"cut"):
18 module.ClusterCheckPSet.cut = _cut
21 if cppType
in [
"PixelTripletLargeTipEDProducer",
"MultiHitFromChi2EDProducer"]:
22 module.maxElement = _maxElement
23 if hasattr(module,
"OrderedHitsFactoryPSet")
and hasattr(module.OrderedHitsFactoryPSet,
"GeneratorPSet"):
24 if module.OrderedHitsFactoryPSet.GeneratorPSet.ComponentName.value()
in [
"PixelTripletLargeTipGenerator",
"MultiHitGeneratorFromChi2"]:
25 module.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = _maxElement
def customiseClusterCheckForHighPileup(process)