CMS 3D CMS Logo

customiseEarlyDeleteForCandIsoDeposits.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import collections
4 import six
5 
7  # Find the producers
8 
9  def _branchName(productType, moduleLabel, instanceLabel=""):
10  return "%s_%s_%s_%s" % (productType, moduleLabel, instanceLabel, process.name_())
11 
12  for name, module in six.iteritems(process.producers_()):
13  cppType = module._TypedParameterizable__type
14  if cppType == "CandIsoDepositProducer":
15  if module.ExtractorPSet.ComponentName in ["CandViewExtractor", "PFCandWithSuperClusterExtractor"] :
16  products[name].append(_branchName("recoIsoDepositedmValueMap", name))
17 
18  return products