File indexing completed on 2024-04-06 12:01:06
0001 import FWCore.ParameterSet.Config as cms
0002
0003 import collections
0004
0005 def customiseEarlyDeleteForCandIsoDeposits(process, products):
0006
0007
0008 def _branchName(productType, moduleLabel, instanceLabel=""):
0009 return "%s_%s_%s_%s" % (productType, moduleLabel, instanceLabel, process.name_())
0010
0011 for name, module in process.producers_().items():
0012 cppType = module._TypedParameterizable__type
0013 if cppType == "CandIsoDepositProducer":
0014 if module.ExtractorPSet.ComponentName in ["CandViewExtractor", "PFCandWithSuperClusterExtractor"] :
0015 products[name].append(_branchName("recoIsoDepositedmValueMap", name))
0016
0017 return products