8 for s
in process.paths_().
keys():
9 massSearchReplaceAnyInputTag(getattr(process, s), cms.InputTag(
"mix",
"MergedTrackTruth"), cms.InputTag(
"mixData",
"MergedTrackTruth"), skipLabelTest=
True)
11 for s
in process.endpaths_().
keys():
12 massSearchReplaceAnyInputTag(getattr(process, s), cms.InputTag(
"mix",
"MergedTrackTruth"), cms.InputTag(
"mixData",
"MergedTrackTruth"), skipLabelTest=
True)
18 def replaceInputTag(tag, old, new):
19 if tag.value() == old:
22 def replacePixelDigiSimLink(tag):
23 replaceInputTag(tag,
"simSiPixelDigis",
"mixData:PixelDigiSimLink")
24 def replaceStripDigiSimLink(tag):
25 replaceInputTag(tag,
"simSiStripDigis",
"mixData:StripDigiSimLink")
27 for label, producer
in process.producers_().iteritems():
28 if producer.type_() ==
"ClusterTPAssociationProducer":
29 replacePixelDigiSimLink(producer.pixelSimLinkSrc)
30 replaceStripDigiSimLink(producer.stripSimLinkSrc)
31 if producer.type_() ==
"QuickTrackAssociatorByHitsProducer":
32 replacePixelDigiSimLink(producer.pixelSimLinkSrc)
33 replaceStripDigiSimLink(producer.stripSimLinkSrc)
34 if producer.type_() ==
"TrackAssociatorByHitsProducer":
35 replacePixelDigiSimLink(producer.pixelSimLinkSrc)
36 replaceStripDigiSimLink(producer.stripSimLinkSrc)
37 if producer.type_() ==
"MuonAssociatorEDProducer":
38 producer.DTdigisimlinkTag = cms.InputTag(
"mixData",
"simMuonDTDigis")
39 producer.CSClinksTag = cms.InputTag(
"mixData",
"MuonCSCStripDigiSimLinks")
40 producer.CSCwireLinksTag = cms.InputTag(
"mixData",
"MuonCSCWireDigiSimLinks")
41 producer.RPCdigisimlinkTag = cms.InputTag(
"mixData",
"RPCDigiSimLink")
42 replacePixelDigiSimLink(producer.pixelSimLinkSrc)
43 replaceStripDigiSimLink(producer.stripSimLinkSrc)
44 if producer.type_() ==
"MuonToTrackingParticleAssociatorEDProducer":
45 producer.DTdigisimlinkTag = cms.InputTag(
"mixData",
"simMuonDTDigis")
46 producer.CSClinksTag = cms.InputTag(
"mixData",
"MuonCSCStripDigiSimLinks")
47 producer.CSCwireLinksTag = cms.InputTag(
"mixData",
"MuonCSCWireDigiSimLinks")
48 producer.RPCdigisimlinkTag = cms.InputTag(
"mixData",
"RPCDigiSimLink")
49 replacePixelDigiSimLink(producer.pixelSimLinkSrc)
50 replaceStripDigiSimLink(producer.stripSimLinkSrc)
52 for label, analyzer
in process.analyzers_().iteritems():
53 if analyzer.type_() ==
"GlobalRecHitsAnalyzer":
54 replacePixelDigiSimLink(analyzer.pixelSimLinkSrc)
55 replaceStripDigiSimLink(analyzer.stripSimLinkSrc)
56 if analyzer.type_() ==
"SiPixelTrackingRecHitsValid":
57 replacePixelDigiSimLink(analyzer.pixelSimLinkSrc)
58 replaceStripDigiSimLink(analyzer.stripSimLinkSrc)
59 if analyzer.type_() ==
"SiStripTrackingRecHitsValid":
60 replacePixelDigiSimLink(analyzer.pixelSimLinkSrc)
61 replaceStripDigiSimLink(analyzer.stripSimLinkSrc)
62 if analyzer.type_() ==
"SiPixelRecHitsValid":
63 replacePixelDigiSimLink(analyzer.pixelSimLinkSrc)
64 replaceStripDigiSimLink(analyzer.stripSimLinkSrc)
65 if analyzer.type_() ==
"SiStripRecHitsValid":
66 replacePixelDigiSimLink(analyzer.pixelSimLinkSrc)
67 replaceStripDigiSimLink(analyzer.stripSimLinkSrc)
def massSearchReplaceAnyInputTag