CMS 3D CMS Logo

Functions
customiseEarlyDeleteForMkFit Namespace Reference

Functions

def customiseEarlyDeleteForMkFit (process, products)
 

Function Documentation

◆ customiseEarlyDeleteForMkFit()

def customiseEarlyDeleteForMkFit.customiseEarlyDeleteForMkFit (   process,
  products 
)

Definition at line 5 of file customiseEarlyDeleteForMkFit.py.

References mps_setup.append, and mps_monitormerge.items.

5 def customiseEarlyDeleteForMkFit(process, products):
6  def _branchName(productType, moduleLabel, instanceLabel=""):
7  return "%s_%s_%s_%s" % (productType, moduleLabel, instanceLabel, process.name_())
8 
9  for name, module in process.producers_().items():
10  cppType = module.type_()
11  if cppType == "MkFitSiPixelHitConverter":
12  products[name].extend([
13  _branchName("MkFitHitWrapper", name),
14  _branchName("MkFitClusterIndexToHit", name),
15  ])
16  elif cppType == "MkFitSiStripHitConverter":
17  products[name].extend([
18  _branchName("MkFitHitWrapper", name),
19  _branchName("MkFitClusterIndexToHit", name),
20  _branchName("floats", name)
21  ])
22  elif cppType == "MkFitEventOfHitsProducer":
23  products[name].append(_branchName("MkFitEventOfHits", name))
24  elif cppType == "MkFitSeedConverter":
25  products[name].append(_branchName("MkFitSeedWrapper", name))
26  elif cppType == "MkFitProducer":
27  products[name].append(_branchName("MkFitOutputWrapper", name))
28 
29  return products
30 
def customiseEarlyDeleteForMkFit(process, products)