1 import FWCore.ParameterSet.Config
as cms
3 import RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi
4 import RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi
12 ckfTracksFromConversionsTask = cms.Task(conversionTrackCandidates,ckfOutInTracksFromConversions,ckfInOutTracksFromConversions)
13 ckfTracksFromConversions = cms.Sequence(ckfTracksFromConversionsTask)
15 oldegConversionTrackCandidates = conversionTrackCandidates.clone()
16 oldegConversionTrackCandidates.scHybridBarrelProducer = cms.InputTag(
"correctedHybridSuperClusters")
17 oldegConversionTrackCandidates.bcBarrelCollection = cms.InputTag(
"hybridSuperClusters",
"hybridBarrelBasicClusters")
18 oldegConversionTrackCandidates.scIslandEndcapProducer = cms.InputTag(
"correctedMulti5x5SuperClustersWithPreshower")
19 oldegConversionTrackCandidates.bcEndcapCollection = cms.InputTag(
"multi5x5SuperClusters",
"multi5x5EndcapBasicClusters")
21 ckfOutInTracksFromOldEGConversions = ckfOutInTracksFromConversions.clone()
22 ckfOutInTracksFromOldEGConversions.src = cms.InputTag(
'oldegConversionTrackCandidates',
'outInTracksFromConversions')
23 ckfOutInTracksFromOldEGConversions.producer = cms.string(
'oldegConversionTrackCandidates')
24 ckfOutInTracksFromOldEGConversions.ComponentName = cms.string(
'ckfOutInTracksFromOldEGConversions')
26 ckfInOutTracksFromOldEGConversions = ckfInOutTracksFromConversions.clone()
27 ckfInOutTracksFromOldEGConversions.src = cms.InputTag(
'oldegConversionTrackCandidates',
'inOutTracksFromConversions')
28 ckfInOutTracksFromOldEGConversions.producer = cms.string(
'oldegConversionTrackCandidates')
29 ckfInOutTracksFromOldEGConversions.ComponentName = cms.string(
'ckfInOutTracksFromOldEGConversions')
31 ckfTracksFromOldEGConversionsTask = cms.Task(oldegConversionTrackCandidates,ckfOutInTracksFromOldEGConversions,ckfInOutTracksFromOldEGConversions)
32 ckfTracksFromOldEGConversions = cms.Sequence(ckfTracksFromOldEGConversionsTask)
34 generalConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
35 TrackProducer = cms.string(
'generalTracks'),
36 setTrackerOnly = cms.bool(
True),
37 setArbitratedMergedEcalGeneral = cms.bool(
True),
41 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
44 generalConversionTrackProducerTmp = generalConversionTrackProducer.clone(
45 TrackProducer =
'generalTracksBeforeMixing')
48 import FastSimulation.Tracking.ConversionTrackRefFix_cfi
49 _fastSim_conversionTrackRefFix = FastSimulation.Tracking.ConversionTrackRefFix_cfi.fixedConversionTracks.clone(
50 src = cms.InputTag(
"generalConversionTrackProducerTmp"))
51 fastSim.toReplaceWith(generalConversionTrackProducer,
52 _fastSim_conversionTrackRefFix)
56 conversionStepConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
57 TrackProducer = cms.string(
'conversionStepTracks'),
58 setTrackerOnly = cms.bool(
True),
59 setArbitratedMergedEcalGeneral = cms.bool(
True),
64 inOutConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
65 TrackProducer = cms.string(
'ckfInOutTracksFromConversions'),
66 setArbitratedEcalSeeded = cms.bool(
True),
67 setArbitratedMergedEcalGeneral = cms.bool(
True),
71 outInConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
72 TrackProducer = cms.string(
'ckfOutInTracksFromConversions'),
73 setArbitratedEcalSeeded = cms.bool(
True),
74 setArbitratedMergedEcalGeneral = cms.bool(
True),
78 gsfConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
79 TrackProducer = cms.string(
'electronGsfTracks'),
80 filterOnConvTrackHyp = cms.bool(
False),
83 conversionTrackProducersTask = cms.Task(generalConversionTrackProducer,conversionStepConversionTrackProducer,inOutConversionTrackProducer,outInConversionTrackProducer,gsfConversionTrackProducer)
84 conversionTrackProducers = cms.Sequence(conversionTrackProducersTask)
86 inOutOldEGConversionTrackProducer = inOutConversionTrackProducer.clone()
87 inOutOldEGConversionTrackProducer.TrackProducer = cms.string(
'ckfInOutTracksFromOldEGConversions')
88 outInOldEGConversionTrackProducer = outInConversionTrackProducer.clone()
89 outInOldEGConversionTrackProducer.TrackProducer = cms.string(
'ckfOutInTracksFromOldEGConversions')
91 oldegConversionTrackProducersTask = cms.Task(inOutOldEGConversionTrackProducer,outInOldEGConversionTrackProducer)
92 oldegConversionTrackProducers = cms.Sequence(oldegConversionTrackProducersTask)
94 generalConversionStepConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
95 TrackProducer1 = cms.InputTag(
'generalConversionTrackProducer'),
96 TrackProducer2 = cms.InputTag(
'conversionStepConversionTrackProducer'),
103 arbitratedMergedPreferCollection = cms.int32(3),
104 arbitratedMergedEcalGeneralPreferCollection = cms.int32(3),
108 inOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
109 TrackProducer1 = cms.InputTag(
'inOutConversionTrackProducer'),
110 TrackProducer2 = cms.InputTag(
'outInConversionTrackProducer'),
117 arbitratedEcalSeededPreferCollection = cms.int32(3),
118 arbitratedMergedPreferCollection = cms.int32(3),
119 arbitratedMergedEcalGeneralPreferCollection = cms.int32(3),
127 generalInOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
128 TrackProducer1 = cms.InputTag(
'inOutOutInConversionTrackMerger'),
129 TrackProducer2 = cms.InputTag(
'generalConversionStepConversionTrackMerger'),
130 arbitratedMergedPreferCollection = cms.int32(3),
131 arbitratedMergedEcalGeneralPreferCollection = cms.int32(2),
137 gsfGeneralInOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
138 TrackProducer1 = cms.InputTag(
'generalInOutOutInConversionTrackMerger'),
139 TrackProducer2 = cms.InputTag(
'gsfConversionTrackProducer'),
140 arbitratedMergedPreferCollection = cms.int32(2),
148 conversionTrackMergersTask = cms.Task(inOutOutInConversionTrackMerger,generalConversionStepConversionTrackMerger,generalInOutOutInConversionTrackMerger,gsfGeneralInOutOutInConversionTrackMerger)
149 conversionTrackMergers = cms.Sequence(conversionTrackMergersTask)
151 inOutOutInOldEGConversionTrackMerger = inOutOutInConversionTrackMerger.clone()
152 inOutOutInOldEGConversionTrackMerger.TrackProducer1 = cms.InputTag(
'inOutOldEGConversionTrackProducer')
153 inOutOutInOldEGConversionTrackMerger.TrackProducer2 = cms.InputTag(
'outInOldEGConversionTrackProducer')
155 generalInOutOutInOldEGConversionTrackMerger = generalInOutOutInConversionTrackMerger.clone()
156 generalInOutOutInOldEGConversionTrackMerger.TrackProducer1 = cms.InputTag(
'inOutOutInOldEGConversionTrackMerger')
158 gsfGeneralInOutOutInOldEGConversionTrackMerger = gsfGeneralInOutOutInConversionTrackMerger.clone()
159 gsfGeneralInOutOutInOldEGConversionTrackMerger.TrackProducer1 = cms.InputTag(
'generalInOutOutInOldEGConversionTrackMerger')
161 oldegConversionTrackMergersTask = cms.Task(inOutOutInOldEGConversionTrackMerger,generalInOutOutInOldEGConversionTrackMerger,gsfGeneralInOutOutInOldEGConversionTrackMerger)
162 oldegConversionTrackMergers = cms.Sequence(oldegConversionTrackMergersTask)
165 conversionTrackTask = cms.Task(ckfTracksFromConversionsTask,conversionTrackProducersTask,conversionTrackMergersTask)
166 conversionTrackSequence = cms.Sequence(conversionTrackTask)
169 gsfGeneralConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
170 TrackProducer1 = cms.InputTag(
'generalConversionTrackProducer'),
171 TrackProducer2 = cms.InputTag(
'gsfConversionTrackProducer'),
172 arbitratedMergedPreferCollection = cms.int32(2),
176 conversionTrackTaskNoEcalSeeded = cms.Task(generalConversionTrackProducer,gsfConversionTrackProducer,gsfGeneralConversionTrackMerger)
177 conversionTrackSequenceNoEcalSeeded = cms.Sequence(conversionTrackTaskNoEcalSeeded)
179 _fastSim_conversionTrackTaskNoEcalSeeded = conversionTrackTaskNoEcalSeeded.copy()
180 _fastSim_conversionTrackTaskNoEcalSeeded.replace(generalConversionTrackProducer,cms.Task(generalConversionTrackProducerTmp,generalConversionTrackProducer))
181 fastSim.toReplaceWith(conversionTrackTaskNoEcalSeeded,_fastSim_conversionTrackTaskNoEcalSeeded)