1 import FWCore.ParameterSet.Config
as cms
6 def _branchName(productType, moduleLabel, instanceLabel=""):
7 return "%s_%s_%s_%s" % (productType, moduleLabel, instanceLabel, process.name_())
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),
16 elif cppType ==
"MkFitSiStripHitConverter":
17 products[name].extend([
18 _branchName(
"MkFitHitWrapper", name),
19 _branchName(
"MkFitClusterIndexToHit", name),
20 _branchName(
"floats", name)
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))