Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-05 23:13:08

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import collections
0004 
0005 def customiseEarlyDeleteForMkFit(process, products):
0006     def _branchName(productType, moduleLabel, instanceLabel=""):
0007         return "%s_%s_%s_%s" % (productType, moduleLabel, instanceLabel, process.name_())
0008 
0009     for name, module in process.producers_().items():
0010         cppType = module.type_()
0011         if cppType == "MkFitSiPixelHitConverter":
0012             products[name].extend([
0013                 _branchName("MkFitHitWrapper", name),
0014                 _branchName("MkFitClusterIndexToHit", name),
0015             ])
0016         elif cppType == "MkFitSiStripHitConverter":
0017             products[name].extend([
0018                 _branchName("MkFitHitWrapper", name),
0019                 _branchName("MkFitClusterIndexToHit", name),
0020                 _branchName("floats", name)
0021             ])
0022         elif cppType == "MkFitEventOfHitsProducer":
0023             products[name].append(_branchName("MkFitEventOfHits", name))
0024         elif cppType == "MkFitSeedConverter":
0025             products[name].append(_branchName("MkFitSeedWrapper", name))
0026         elif cppType == "MkFitProducer":
0027             products[name].append(_branchName("MkFitOutputWrapper", name))
0028 
0029     return products