1 import FWCore.ParameterSet.Config
as cms
6 value1 = 20, value2 = 10,
9 useBendingCorrection =
True,
16 pset = getattr(module,
"OrderedHitsFactoryPSet")
17 if not hasattr(pset,
"ComponentName"):
19 if pset.ComponentName !=
"StandardHitTripletGenerator":
22 seedingLayersName = module.OrderedHitsFactoryPSet.SeedingLayers.getModuleLabel()
26 Triplets = module.OrderedHitsFactoryPSet.clone()
27 from RecoPixelVertexing.PixelTriplets.CAHitTripletGenerator_cfi
import CAHitTripletGenerator
as _CAHitTripletGenerator
29 module.OrderedHitsFactoryPSet = _CAHitTripletGenerator.clone(
30 ComponentName =
"CAHitTripletGenerator",
31 extraHitRPhitolerance = Triplets.GeneratorPSet.extraHitRPhitolerance,
32 SeedingLayers = seedingLayersName,
36 if hasattr(Triplets.GeneratorPSet,
"SeedComparitorPSet"):
37 module.OrderedHitsFactoryPSet.SeedComparitorPSet = Triplets.GeneratorPSet.SeedComparitorPSet
40 doubletModuleName = module.doublets.getModuleLabel()
41 doubletModule = getattr(process, doubletModuleName)
44 doubletModule.layerPairs = [
53 modifier = cms.Modifier()
57 if hasattr(module,
"SeedComparitorPSet"):
58 comparitor = module.SeedComparitorPSet.clone()
61 from RecoPixelVertexing.PixelTriplets.caHitTripletEDProducer_cfi
import caHitTripletEDProducer
as _caHitTripletEDProducer
62 modifier.toReplaceWith(module, _caHitTripletEDProducer.clone(
63 doublets = doubletModuleName,
64 extraHitRPhitolerance = module.extraHitRPhitolerance,
69 module.SeedComparitorPSet = comparitor
73 for module
in process._Process__producers.values():
74 if hasattr(module,
"OrderedHitsFactoryPSet"):
76 elif module._TypedParameterizable__type
in [
"PixelTripletHLTEDProducer",
"PixelTripletLargeTipEDProducer"]:
def customiseForTripletsByCellularAutomaton(process)
def customiseLegacySeeding(module)
def customiseNewSeeding(process, module)