7 references = collections.defaultdict(list)
9 def _branchName(productType, moduleLabel, instanceLabel=""):
10 return "%s_%s_%s_%s" % (productType, moduleLabel, instanceLabel, process.name_())
12 for name, module
in process.producers_().
items():
13 cppType = module._TypedParameterizable__type
14 if cppType ==
"HitPairEDProducer":
15 if module.produceSeedingHitSets:
16 products[name].
append(_branchName(
"RegionsSeedingHitSets", name))
17 if module.produceIntermediateHitDoublets:
18 products[name].
append(_branchName(
"IntermediateHitDoublets", name))
19 elif cppType
in [
"PixelTripletHLTEDProducer",
"PixelTripletLargeTipEDProducer"]:
22 b = _branchName(
'IntermediateHitDoublets', module.doublets.getModuleLabel())
23 if module.produceSeedingHitSets:
24 pBranch = _branchName(
"RegionsSeedingHitSets", name)
25 products[name].
append(pBranch)
26 references[pBranch]=[b]
27 if module.produceIntermediateHitTriplets:
28 pBranch = _branchName(
"IntermediateHitTriplets", name)
29 products[name].
append(pBranch)
30 references[pBranch]=[b]
31 elif cppType
in [
"MultiHitFromChi2EDProducer"]:
32 products[name].extend([
33 _branchName(
"RegionsSeedingHitSets", name),
34 _branchName(
"BaseTrackerRecHitsOwned", name)
36 references[_branchName(
"RegionsSeedingHitSets", name)]=[_branchName(
"BaseTrackerRecHitsOwned", name)]
37 elif cppType
in [
"CAHitQuadrupletEDProducer",
"CAHitTripletEDProducer"]:
38 products[name].
append(_branchName(
"RegionsSeedingHitSets", name))
40 return (products, references)
41 def customiseEarlyDeleteForSeeding(process, products)