Skip to content

Commit

Permalink
Simplified customiseEarlyDeleteForSeeding implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed Sep 16, 2022
1 parent 27d016a commit 435da92
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,17 @@ def _branchName(productType, moduleLabel, instanceLabel=""):
if module.produceIntermediateHitDoublets:
products[name].append(_branchName("IntermediateHitDoublets", name))
elif cppType in ["PixelTripletHLTEDProducer", "PixelTripletLargeTipEDProducer"]:
dependencies = []
if module.produceSeedingHitSets:
products[name].append(_branchName("RegionsSeedingHitSets", name))
dependencies.append(_branchName("RegionsSeedingHitSets", name))
if module.produceIntermediateHitTriplets:
products[name].append(_branchName("IntermediateHitTriplets", name))
dependencies.append(_branchName("IntermediateHitTriplets", name))
# LayerHitMapCache of the doublets is forwarded to both
# products, hence the dependency
b = _branchName('IntermediateHitDoublets', module.doublets.getModuleLabel())
for d in dependencies:
references[d] = [b]
if module.produceSeedingHitSets:
pBranch = _branchName("RegionsSeedingHitSets", name)
products[name].append(pBranch)
references[pBranch]=[b]
if module.produceIntermediateHitTriplets:
pBranch = _branchName("IntermediateHitTriplets", name)
products[name].append(pBranch)
references[pBranch]=[b]
elif cppType in ["MultiHitFromChi2EDProducer"]:
products[name].extend([
_branchName("RegionsSeedingHitSets", name),
Expand Down

0 comments on commit 435da92

Please sign in to comment.