CMS 3D CMS Logo

Functions
customiseClusterCheckForHighPileup Namespace Reference

Functions

def customiseClusterCheckForHighPileup (process)
 

Function Documentation

◆ customiseClusterCheckForHighPileup()

def customiseClusterCheckForHighPileup.customiseClusterCheckForHighPileup (   process)

Definition at line 1 of file customiseClusterCheckForHighPileup.py.

2  _maxPixel = 80000
3  _cut = "strip < 800000 && pixel < 80000 && (strip < 50000 + 10*pixel) && (pixel < 5000 + strip/7.)"
4 
5  _maxElement = 1000000
6 
7  for module in process._Process__producers.values():
8  cppType = module._TypedParameterizable__type
9 
10  # cluster multiplicity check
11  if cppType == "ClusterCheckerEDProducer":
12  module.MaxNumberOfPixelClusters = _maxPixel
13  module.cut = _cut
14  if hasattr(module, "ClusterCheckPSet"):
15  module.ClusterCheckPSet.MaxNumberOfPixelClusters = _maxPixel
16  # PhotonConversionTrajectorySeedProducerFromQuadruplets does not have "cut"...
17  if hasattr(module.ClusterCheckPSet, "cut"):
18  module.ClusterCheckPSet.cut = _cut
19 
20  # maxElement
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
26 
27  return process