File indexing completed on 2024-04-06 12:28:00
0001 def customiseClusterCheckForHighPileup(process):
0002 _maxPixel = 80000
0003 _cut = "strip < 800000 && pixel < 80000 && (strip < 50000 + 10*pixel) && (pixel < 5000 + strip/7.)"
0004
0005 _maxElement = 1000000
0006
0007 for module in process._Process__producers.values():
0008 cppType = module._TypedParameterizable__type
0009
0010
0011 if cppType == "ClusterCheckerEDProducer":
0012 module.MaxNumberOfPixelClusters = _maxPixel
0013 module.cut = _cut
0014 if hasattr(module, "ClusterCheckPSet"):
0015 module.ClusterCheckPSet.MaxNumberOfPixelClusters = _maxPixel
0016
0017 if hasattr(module.ClusterCheckPSet, "cut"):
0018 module.ClusterCheckPSet.cut = _cut
0019
0020
0021 if cppType in ["PixelTripletLargeTipEDProducer", "MultiHitFromChi2EDProducer"]:
0022 module.maxElement = _maxElement
0023 if hasattr(module, "OrderedHitsFactoryPSet") and hasattr(module.OrderedHitsFactoryPSet, "GeneratorPSet"):
0024 if module.OrderedHitsFactoryPSet.GeneratorPSet.ComponentName.value() in ["PixelTripletLargeTipGenerator", "MultiHitGeneratorFromChi2"]:
0025 module.OrderedHitsFactoryPSet.GeneratorPSet.maxElement = _maxElement
0026
0027 return process