Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-23 02:25:18

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import collections
0004 
0005 def customiseEarlyDeleteForCandIsoDeposits(process, products):
0006     # Find the producers
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