CMS 3D CMS Logo

Functions
customiseEarlyDeleteForCandIsoDeposits Namespace Reference

Functions

def customiseEarlyDeleteForCandIsoDeposits (process, products)
 

Function Documentation

◆ customiseEarlyDeleteForCandIsoDeposits()

def customiseEarlyDeleteForCandIsoDeposits.customiseEarlyDeleteForCandIsoDeposits (   process,
  products 
)

Definition at line 6 of file customiseEarlyDeleteForCandIsoDeposits.py.

6 def customiseEarlyDeleteForCandIsoDeposits(process, products):
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

References mps_setup.append.

mps_setup.append
append
Definition: mps_setup.py:85
customiseEarlyDeleteForCandIsoDeposits.customiseEarlyDeleteForCandIsoDeposits
def customiseEarlyDeleteForCandIsoDeposits(process, products)
Definition: customiseEarlyDeleteForCandIsoDeposits.py:6