1 import FWCore.ParameterSet.Config
as cms
6 value1 = 200, value2 = 100,
9 useBendingCorrection =
True,
11 fitFastCircleChi2Cut =
True,
18 pset = getattr(module,
"OrderedHitsFactoryPSet")
19 if not hasattr(pset,
"ComponentName"):
21 if pset.ComponentName !=
"CombinedHitQuadrupletGenerator":
24 seedingLayersName = module.OrderedHitsFactoryPSet.SeedingLayers.getModuleLabel()
27 quadruplets = module.OrderedHitsFactoryPSet.clone()
28 from RecoPixelVertexing.PixelTriplets.CAHitQuadrupletGenerator_cfi
import CAHitQuadrupletGenerator
as _CAHitQuadrupletGenerator
30 module.OrderedHitsFactoryPSet = _CAHitQuadrupletGenerator.clone(
31 ComponentName =
"CAHitQuadrupletGenerator",
32 extraHitRPhitolerance = quadruplets.GeneratorPSet.extraHitRPhitolerance,
33 SeedingLayers = seedingLayersName,
37 if hasattr(quadruplets.GeneratorPSet,
"SeedComparitorPSet"):
38 module.OrderedHitsFactoryPSet.SeedComparitorPSet = quadruplets.GeneratorPSet.SeedComparitorPSet
41 tripletModuleName = module.triplets.getModuleLabel()
42 tripletModule = getattr(process, tripletModuleName)
43 doubletModuleName = tripletModule.doublets.getModuleLabel()
44 doubletModule = getattr(process, doubletModuleName)
47 doubletModule.layerPairs = [
57 modifier = cms.Modifier()
61 from RecoPixelVertexing.PixelTriplets.caHitQuadrupletEDProducer_cfi
import caHitQuadrupletEDProducer
as _caHitQuadrupletEDProducer
62 modifier.toReplaceWith(module, _caHitQuadrupletEDProducer.clone(
63 doublets = doubletModuleName,
64 SeedComparitorPSet = module.SeedComparitorPSet.clone(),
65 extraHitRPhitolerance = module.extraHitRPhitolerance,
70 for seqs
in [process.sequences_(), process.paths_()]:
71 for seqName, seq
in seqs.iteritems():
75 index = seq.index(tripletModule)
79 seq.remove(tripletModule)
81 delattr(process, tripletModuleName)
84 for module
in process._Process__producers.values():
85 if hasattr(module,
"OrderedHitsFactoryPSet"):
87 elif module._TypedParameterizable__type ==
"PixelQuadrupletEDProducer":
def customiseLegacySeeding(module)
def customiseForQuadrupletsByCellularAutomaton(process)
def customiseNewSeeding(process, module)