1 import FWCore.ParameterSet.Config
as cms
3 import RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi
4 import RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi
12 ckfTracksFromConversions = cms.Sequence(conversionTrackCandidates*ckfOutInTracksFromConversions*ckfInOutTracksFromConversions)
14 oldegConversionTrackCandidates = conversionTrackCandidates.clone()
15 oldegConversionTrackCandidates.scHybridBarrelProducer = cms.InputTag(
"correctedHybridSuperClusters")
16 oldegConversionTrackCandidates.bcBarrelCollection = cms.InputTag(
"hybridSuperClusters",
"hybridBarrelBasicClusters")
17 oldegConversionTrackCandidates.scIslandEndcapProducer = cms.InputTag(
"correctedMulti5x5SuperClustersWithPreshower")
18 oldegConversionTrackCandidates.bcEndcapCollection = cms.InputTag(
"multi5x5SuperClusters",
"multi5x5EndcapBasicClusters")
20 ckfOutInTracksFromOldEGConversions = ckfOutInTracksFromConversions.clone()
21 ckfOutInTracksFromOldEGConversions.src = cms.InputTag(
'oldegConversionTrackCandidates',
'outInTracksFromConversions')
22 ckfOutInTracksFromOldEGConversions.producer = cms.string(
'oldegConversionTrackCandidates')
23 ckfOutInTracksFromOldEGConversions.ComponentName = cms.string(
'ckfOutInTracksFromOldEGConversions')
25 ckfInOutTracksFromOldEGConversions = ckfInOutTracksFromConversions.clone()
26 ckfInOutTracksFromOldEGConversions.src = cms.InputTag(
'oldegConversionTrackCandidates',
'inOutTracksFromConversions')
27 ckfInOutTracksFromOldEGConversions.producer = cms.string(
'oldegConversionTrackCandidates')
28 ckfInOutTracksFromOldEGConversions.ComponentName = cms.string(
'ckfInOutTracksFromOldEGConversions')
30 ckfTracksFromOldEGConversions = cms.Sequence(oldegConversionTrackCandidates*ckfOutInTracksFromOldEGConversions*ckfInOutTracksFromOldEGConversions)
33 generalConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
34 TrackProducer = cms.string(
'generalTracks'),
35 setTrackerOnly = cms.bool(
True),
36 setArbitratedMergedEcalGeneral = cms.bool(
True),
40 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
43 generalConversionTrackProducerTmp = generalConversionTrackProducer.clone(
44 TrackProducer =
'generalTracksBeforeMixing')
47 import FastSimulation.Tracking.ConversionTrackRefFix_cfi
48 _fastSim_conversionTrackRefFix = FastSimulation.Tracking.ConversionTrackRefFix_cfi.fixedConversionTracks.clone(
49 src = cms.InputTag(
"generalConversionTrackProducerTmp"))
50 fastSim.toReplaceWith(generalConversionTrackProducer,
51 _fastSim_conversionTrackRefFix)
55 conversionStepConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
56 TrackProducer = cms.string(
'conversionStepTracks'),
57 setTrackerOnly = cms.bool(
True),
58 setArbitratedMergedEcalGeneral = cms.bool(
True),
63 inOutConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
64 TrackProducer = cms.string(
'ckfInOutTracksFromConversions'),
65 setArbitratedEcalSeeded = cms.bool(
True),
66 setArbitratedMergedEcalGeneral = cms.bool(
True),
70 outInConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
71 TrackProducer = cms.string(
'ckfOutInTracksFromConversions'),
72 setArbitratedEcalSeeded = cms.bool(
True),
73 setArbitratedMergedEcalGeneral = cms.bool(
True),
77 gsfConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
78 TrackProducer = cms.string(
'electronGsfTracks'),
79 filterOnConvTrackHyp = cms.bool(
False),
82 conversionTrackProducers = cms.Sequence(generalConversionTrackProducer*conversionStepConversionTrackProducer*inOutConversionTrackProducer*outInConversionTrackProducer*gsfConversionTrackProducer)
84 inOutOldEGConversionTrackProducer = inOutConversionTrackProducer.clone()
85 inOutOldEGConversionTrackProducer.TrackProducer = cms.string(
'ckfInOutTracksFromOldEGConversions')
86 outInOldEGConversionTrackProducer = outInConversionTrackProducer.clone()
87 outInOldEGConversionTrackProducer.TrackProducer = cms.string(
'ckfOutInTracksFromOldEGConversions')
89 oldegConversionTrackProducers = cms.Sequence(inOutOldEGConversionTrackProducer*outInOldEGConversionTrackProducer)
92 generalConversionStepConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
93 TrackProducer1 = cms.InputTag(
'generalConversionTrackProducer'),
94 TrackProducer2 = cms.InputTag(
'conversionStepConversionTrackProducer'),
101 arbitratedMergedPreferCollection = cms.int32(3),
102 arbitratedMergedEcalGeneralPreferCollection = cms.int32(3),
106 inOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
107 TrackProducer1 = cms.InputTag(
'inOutConversionTrackProducer'),
108 TrackProducer2 = cms.InputTag(
'outInConversionTrackProducer'),
115 arbitratedEcalSeededPreferCollection = cms.int32(3),
116 arbitratedMergedPreferCollection = cms.int32(3),
117 arbitratedMergedEcalGeneralPreferCollection = cms.int32(3),
125 generalInOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
126 TrackProducer1 = cms.InputTag(
'inOutOutInConversionTrackMerger'),
127 TrackProducer2 = cms.InputTag(
'generalConversionStepConversionTrackMerger'),
128 arbitratedMergedPreferCollection = cms.int32(3),
129 arbitratedMergedEcalGeneralPreferCollection = cms.int32(2),
135 gsfGeneralInOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
136 TrackProducer1 = cms.InputTag(
'generalInOutOutInConversionTrackMerger'),
137 TrackProducer2 = cms.InputTag(
'gsfConversionTrackProducer'),
138 arbitratedMergedPreferCollection = cms.int32(2),
146 conversionTrackMergers = cms.Sequence(inOutOutInConversionTrackMerger*generalConversionStepConversionTrackMerger*generalInOutOutInConversionTrackMerger*gsfGeneralInOutOutInConversionTrackMerger)
148 inOutOutInOldEGConversionTrackMerger = inOutOutInConversionTrackMerger.clone()
149 inOutOutInOldEGConversionTrackMerger.TrackProducer1 = cms.InputTag(
'inOutOldEGConversionTrackProducer')
150 inOutOutInOldEGConversionTrackMerger.TrackProducer2 = cms.InputTag(
'outInOldEGConversionTrackProducer')
152 generalInOutOutInOldEGConversionTrackMerger = generalInOutOutInConversionTrackMerger.clone()
153 generalInOutOutInOldEGConversionTrackMerger.TrackProducer1 = cms.InputTag(
'inOutOutInOldEGConversionTrackMerger')
155 gsfGeneralInOutOutInOldEGConversionTrackMerger = gsfGeneralInOutOutInConversionTrackMerger.clone()
156 gsfGeneralInOutOutInOldEGConversionTrackMerger.TrackProducer1 = cms.InputTag(
'generalInOutOutInOldEGConversionTrackMerger')
158 oldegConversionTrackMergers = cms.Sequence(inOutOutInOldEGConversionTrackMerger*generalInOutOutInOldEGConversionTrackMerger*gsfGeneralInOutOutInOldEGConversionTrackMerger)
160 conversionTrackSequence = cms.Sequence(ckfTracksFromConversions*conversionTrackProducers*conversionTrackMergers)
164 gsfGeneralConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
165 TrackProducer1 = cms.InputTag(
'generalConversionTrackProducer'),
166 TrackProducer2 = cms.InputTag(
'gsfConversionTrackProducer'),
167 arbitratedMergedPreferCollection = cms.int32(2),
171 conversionTrackSequenceNoEcalSeeded = cms.Sequence(generalConversionTrackProducer*gsfConversionTrackProducer*gsfGeneralConversionTrackMerger)
173 _fastSim_conversionTrackSequenceNoEcalSeeded = conversionTrackSequenceNoEcalSeeded.copy()
174 _fastSim_conversionTrackSequenceNoEcalSeeded.replace(generalConversionTrackProducer,generalConversionTrackProducerTmp+generalConversionTrackProducer)
175 fastSim.toReplaceWith(conversionTrackSequenceNoEcalSeeded,_fastSim_conversionTrackSequenceNoEcalSeeded)