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 scHybridBarrelProducer =
"correctedHybridSuperClusters",
17 bcBarrelCollection =
"hybridSuperClusters:hybridBarrelBasicClusters",
18 scIslandEndcapProducer =
"correctedMulti5x5SuperClustersWithPreshower",
19 bcEndcapCollection =
"multi5x5SuperClusters:multi5x5EndcapBasicClusters"
21 ckfOutInTracksFromOldEGConversions = ckfOutInTracksFromConversions.clone(
22 src =
'oldegConversionTrackCandidates:outInTracksFromConversions',
23 producer =
'oldegConversionTrackCandidates',
24 ComponentName =
'ckfOutInTracksFromOldEGConversions'
26 ckfInOutTracksFromOldEGConversions = ckfInOutTracksFromConversions.clone(
27 src =
'oldegConversionTrackCandidates:inOutTracksFromConversions',
28 producer =
'oldegConversionTrackCandidates',
29 ComponentName =
'ckfInOutTracksFromOldEGConversions'
31 ckfTracksFromOldEGConversionsTask = cms.Task(oldegConversionTrackCandidates,ckfOutInTracksFromOldEGConversions,ckfInOutTracksFromOldEGConversions)
32 ckfTracksFromOldEGConversions = cms.Sequence(ckfTracksFromOldEGConversionsTask)
34 generalConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
35 TrackProducer =
'generalTracks',
36 setTrackerOnly =
True,
37 setArbitratedMergedEcalGeneral =
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 =
"generalConversionTrackProducerTmp")
51 fastSim.toReplaceWith(generalConversionTrackProducer,
52 _fastSim_conversionTrackRefFix)
56 conversionStepConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
57 TrackProducer =
'conversionStepTracks',
58 setTrackerOnly =
True,
59 setArbitratedMergedEcalGeneral =
True,
64 inOutConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
65 TrackProducer =
'ckfInOutTracksFromConversions',
66 setArbitratedEcalSeeded =
True,
67 setArbitratedMergedEcalGeneral =
True,
71 outInConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
72 TrackProducer =
'ckfOutInTracksFromConversions',
73 setArbitratedEcalSeeded =
True,
74 setArbitratedMergedEcalGeneral =
True,
78 gsfConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
79 TrackProducer =
'electronGsfTracks',
80 filterOnConvTrackHyp =
False,
83 conversionTrackProducersTask = cms.Task(generalConversionTrackProducer,conversionStepConversionTrackProducer,inOutConversionTrackProducer,outInConversionTrackProducer,gsfConversionTrackProducer)
84 conversionTrackProducers = cms.Sequence(conversionTrackProducersTask)
86 inOutOldEGConversionTrackProducer = inOutConversionTrackProducer.clone(
87 TrackProducer =
'ckfInOutTracksFromOldEGConversions'
89 outInOldEGConversionTrackProducer = outInConversionTrackProducer.clone(
90 TrackProducer =
'ckfOutInTracksFromOldEGConversions'
92 oldegConversionTrackProducersTask = cms.Task(inOutOldEGConversionTrackProducer,outInOldEGConversionTrackProducer)
93 oldegConversionTrackProducers = cms.Sequence(oldegConversionTrackProducersTask)
95 generalConversionStepConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
96 TrackProducer1 =
'generalConversionTrackProducer',
97 TrackProducer2 =
'conversionStepConversionTrackProducer',
104 arbitratedMergedPreferCollection = 3,
105 arbitratedMergedEcalGeneralPreferCollection = 3,
109 inOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
110 TrackProducer1 =
'inOutConversionTrackProducer',
111 TrackProducer2 =
'outInConversionTrackProducer',
118 arbitratedEcalSeededPreferCollection = 3,
119 arbitratedMergedPreferCollection = 3,
120 arbitratedMergedEcalGeneralPreferCollection = 3,
128 generalInOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
129 TrackProducer1 =
'inOutOutInConversionTrackMerger',
130 TrackProducer2 =
'generalConversionStepConversionTrackMerger',
131 arbitratedMergedPreferCollection = 3,
132 arbitratedMergedEcalGeneralPreferCollection = 2,
138 gsfGeneralInOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
139 TrackProducer1 =
'generalInOutOutInConversionTrackMerger',
140 TrackProducer2 =
'gsfConversionTrackProducer',
141 arbitratedMergedPreferCollection = 2,
149 conversionTrackMergersTask = cms.Task(inOutOutInConversionTrackMerger,generalConversionStepConversionTrackMerger,generalInOutOutInConversionTrackMerger,gsfGeneralInOutOutInConversionTrackMerger)
150 conversionTrackMergers = cms.Sequence(conversionTrackMergersTask)
152 inOutOutInOldEGConversionTrackMerger = inOutOutInConversionTrackMerger.clone(
153 TrackProducer1 =
'inOutOldEGConversionTrackProducer',
154 TrackProducer2 =
'outInOldEGConversionTrackProducer'
156 generalInOutOutInOldEGConversionTrackMerger = generalInOutOutInConversionTrackMerger.clone(
157 TrackProducer1 =
'inOutOutInOldEGConversionTrackMerger'
159 gsfGeneralInOutOutInOldEGConversionTrackMerger = gsfGeneralInOutOutInConversionTrackMerger.clone(
160 TrackProducer1 =
'generalInOutOutInOldEGConversionTrackMerger'
162 oldegConversionTrackMergersTask = cms.Task(inOutOutInOldEGConversionTrackMerger,generalInOutOutInOldEGConversionTrackMerger,gsfGeneralInOutOutInOldEGConversionTrackMerger)
163 oldegConversionTrackMergers = cms.Sequence(oldegConversionTrackMergersTask)
166 conversionTrackTask = cms.Task(ckfTracksFromConversionsTask,conversionTrackProducersTask,conversionTrackMergersTask)
167 conversionTrackSequence = cms.Sequence(conversionTrackTask)
170 gsfGeneralConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
171 TrackProducer1 =
'generalConversionTrackProducer',
172 TrackProducer2 =
'gsfConversionTrackProducer',
173 arbitratedMergedPreferCollection = 2,
177 conversionTrackTaskNoEcalSeeded = cms.Task(generalConversionTrackProducer,gsfConversionTrackProducer,gsfGeneralConversionTrackMerger)
178 conversionTrackSequenceNoEcalSeeded = cms.Sequence(conversionTrackTaskNoEcalSeeded)
180 _fastSim_conversionTrackTaskNoEcalSeeded = conversionTrackTaskNoEcalSeeded.copy()
181 _fastSim_conversionTrackTaskNoEcalSeeded.replace(generalConversionTrackProducer,cms.Task(generalConversionTrackProducerTmp,generalConversionTrackProducer))
182 fastSim.toReplaceWith(conversionTrackTaskNoEcalSeeded,_fastSim_conversionTrackTaskNoEcalSeeded)