CMS 3D CMS Logo

Functions
customiseEarlyDeleteForCandIsoDeposits Namespace Reference

Functions

def customiseEarlyDeleteForCandIsoDeposits (process, products)
 

Function Documentation

def customiseEarlyDeleteForCandIsoDeposits.customiseEarlyDeleteForCandIsoDeposits (   process,
  products 
)

Definition at line 6 of file customiseEarlyDeleteForCandIsoDeposits.py.

References mps_setup.append.

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