CMS 3D CMS Logo

customiseEarlyDeleteForMkFit.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 import collections
4 
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
def customiseEarlyDeleteForMkFit(process, products)