File indexing completed on 2024-04-06 12:24:58
0001 import FWCore.ParameterSet.Config as cms
0002
0003 import RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi
0004 import RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi
0005
0006
0007 from RecoEgamma.EgammaPhotonProducers.conversionTrackCandidates_cff import *
0008
0009 from RecoEgamma.EgammaPhotonProducers.ckfOutInTracksFromConversions_cfi import *
0010 from RecoEgamma.EgammaPhotonProducers.ckfInOutTracksFromConversions_cfi import *
0011
0012 ckfTracksFromConversionsTask = cms.Task(conversionTrackCandidates,ckfOutInTracksFromConversions,ckfInOutTracksFromConversions)
0013 ckfTracksFromConversions = cms.Sequence(ckfTracksFromConversionsTask)
0014
0015 oldegConversionTrackCandidates = conversionTrackCandidates.clone(
0016 scHybridBarrelProducer = "correctedHybridSuperClusters",
0017 bcBarrelCollection = "hybridSuperClusters:hybridBarrelBasicClusters",
0018 scIslandEndcapProducer = "correctedMulti5x5SuperClustersWithPreshower",
0019 bcEndcapCollection = "multi5x5SuperClusters:multi5x5EndcapBasicClusters"
0020 )
0021 ckfOutInTracksFromOldEGConversions = ckfOutInTracksFromConversions.clone(
0022 src = 'oldegConversionTrackCandidates:outInTracksFromConversions',
0023 producer = 'oldegConversionTrackCandidates',
0024 ComponentName = 'ckfOutInTracksFromOldEGConversions'
0025 )
0026 ckfInOutTracksFromOldEGConversions = ckfInOutTracksFromConversions.clone(
0027 src = 'oldegConversionTrackCandidates:inOutTracksFromConversions',
0028 producer = 'oldegConversionTrackCandidates',
0029 ComponentName = 'ckfInOutTracksFromOldEGConversions'
0030 )
0031 ckfTracksFromOldEGConversionsTask = cms.Task(oldegConversionTrackCandidates,ckfOutInTracksFromOldEGConversions,ckfInOutTracksFromOldEGConversions)
0032 ckfTracksFromOldEGConversions = cms.Sequence(ckfTracksFromOldEGConversionsTask)
0033
0034 generalConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
0035 TrackProducer = 'generalTracks',
0036 setTrackerOnly = True,
0037 setArbitratedMergedEcalGeneral = True,
0038 )
0039
0040
0041 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0042
0043
0044 generalConversionTrackProducerTmp = generalConversionTrackProducer.clone(
0045 TrackProducer = 'generalTracksBeforeMixing')
0046
0047
0048 import FastSimulation.Tracking.ConversionTrackRefFix_cfi
0049 _fastSim_conversionTrackRefFix = FastSimulation.Tracking.ConversionTrackRefFix_cfi.fixedConversionTracks.clone(
0050 src = "generalConversionTrackProducerTmp")
0051 fastSim.toReplaceWith(generalConversionTrackProducer,
0052 _fastSim_conversionTrackRefFix)
0053
0054
0055
0056 conversionStepConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
0057 TrackProducer = 'conversionStepTracks',
0058 setTrackerOnly = True,
0059 setArbitratedMergedEcalGeneral = True,
0060 )
0061
0062
0063
0064 inOutConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
0065 TrackProducer = 'ckfInOutTracksFromConversions',
0066 setArbitratedEcalSeeded = True,
0067 setArbitratedMergedEcalGeneral = True,
0068 )
0069
0070
0071 outInConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
0072 TrackProducer = 'ckfOutInTracksFromConversions',
0073 setArbitratedEcalSeeded = True,
0074 setArbitratedMergedEcalGeneral = True,
0075 )
0076
0077
0078 gsfConversionTrackProducer = RecoEgamma.EgammaPhotonProducers.conversionTrackProducer_cfi.conversionTrackProducer.clone(
0079 TrackProducer = 'electronGsfTracks',
0080 filterOnConvTrackHyp = False,
0081 )
0082
0083 conversionTrackProducersTask = cms.Task(generalConversionTrackProducer,conversionStepConversionTrackProducer,inOutConversionTrackProducer,outInConversionTrackProducer,gsfConversionTrackProducer)
0084 conversionTrackProducers = cms.Sequence(conversionTrackProducersTask)
0085
0086 inOutOldEGConversionTrackProducer = inOutConversionTrackProducer.clone(
0087 TrackProducer = 'ckfInOutTracksFromOldEGConversions'
0088 )
0089 outInOldEGConversionTrackProducer = outInConversionTrackProducer.clone(
0090 TrackProducer = 'ckfOutInTracksFromOldEGConversions'
0091 )
0092 oldegConversionTrackProducersTask = cms.Task(inOutOldEGConversionTrackProducer,outInOldEGConversionTrackProducer)
0093 oldegConversionTrackProducers = cms.Sequence(oldegConversionTrackProducersTask)
0094
0095 generalConversionStepConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
0096 TrackProducer1 = 'generalConversionTrackProducer',
0097 TrackProducer2 = 'conversionStepConversionTrackProducer',
0098
0099
0100
0101
0102
0103
0104 arbitratedMergedPreferCollection = 3,
0105 arbitratedMergedEcalGeneralPreferCollection = 3,
0106 )
0107
0108
0109 inOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
0110 TrackProducer1 = 'inOutConversionTrackProducer',
0111 TrackProducer2 = 'outInConversionTrackProducer',
0112
0113
0114
0115
0116
0117
0118 arbitratedEcalSeededPreferCollection = 3,
0119 arbitratedMergedPreferCollection = 3,
0120 arbitratedMergedEcalGeneralPreferCollection = 3,
0121 )
0122
0123
0124
0125
0126
0127
0128 generalInOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
0129 TrackProducer1 = 'inOutOutInConversionTrackMerger',
0130 TrackProducer2 = 'generalConversionStepConversionTrackMerger',
0131 arbitratedMergedPreferCollection = 3,
0132 arbitratedMergedEcalGeneralPreferCollection = 2,
0133 )
0134
0135
0136
0137
0138 gsfGeneralInOutOutInConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
0139 TrackProducer1 = 'generalInOutOutInConversionTrackMerger',
0140 TrackProducer2 = 'gsfConversionTrackProducer',
0141 arbitratedMergedPreferCollection = 2,
0142 )
0143
0144
0145
0146
0147
0148
0149 conversionTrackMergersTask = cms.Task(inOutOutInConversionTrackMerger,generalConversionStepConversionTrackMerger,generalInOutOutInConversionTrackMerger,gsfGeneralInOutOutInConversionTrackMerger)
0150 conversionTrackMergers = cms.Sequence(conversionTrackMergersTask)
0151
0152 inOutOutInOldEGConversionTrackMerger = inOutOutInConversionTrackMerger.clone(
0153 TrackProducer1 = 'inOutOldEGConversionTrackProducer',
0154 TrackProducer2 = 'outInOldEGConversionTrackProducer'
0155 )
0156 generalInOutOutInOldEGConversionTrackMerger = generalInOutOutInConversionTrackMerger.clone(
0157 TrackProducer1 = 'inOutOutInOldEGConversionTrackMerger'
0158 )
0159 gsfGeneralInOutOutInOldEGConversionTrackMerger = gsfGeneralInOutOutInConversionTrackMerger.clone(
0160 TrackProducer1 = 'generalInOutOutInOldEGConversionTrackMerger'
0161 )
0162 oldegConversionTrackMergersTask = cms.Task(inOutOutInOldEGConversionTrackMerger,generalInOutOutInOldEGConversionTrackMerger,gsfGeneralInOutOutInOldEGConversionTrackMerger)
0163 oldegConversionTrackMergers = cms.Sequence(oldegConversionTrackMergersTask)
0164
0165
0166 conversionTrackTask = cms.Task(ckfTracksFromConversionsTask,conversionTrackProducersTask,conversionTrackMergersTask)
0167 conversionTrackSequence = cms.Sequence(conversionTrackTask)
0168
0169
0170 gsfGeneralConversionTrackMerger = RecoEgamma.EgammaPhotonProducers.conversionTrackMerger_cfi.conversionTrackMerger.clone(
0171 TrackProducer1 = 'generalConversionTrackProducer',
0172 TrackProducer2 = 'gsfConversionTrackProducer',
0173 arbitratedMergedPreferCollection = 2,
0174 )
0175
0176
0177 conversionTrackTaskNoEcalSeeded = cms.Task(generalConversionTrackProducer,gsfConversionTrackProducer,gsfGeneralConversionTrackMerger)
0178 conversionTrackSequenceNoEcalSeeded = cms.Sequence(conversionTrackTaskNoEcalSeeded)
0179
0180 _fastSim_conversionTrackTaskNoEcalSeeded = conversionTrackTaskNoEcalSeeded.copy()
0181 _fastSim_conversionTrackTaskNoEcalSeeded.replace(generalConversionTrackProducer,cms.Task(generalConversionTrackProducerTmp,generalConversionTrackProducer))
0182 fastSim.toReplaceWith(conversionTrackTaskNoEcalSeeded,_fastSim_conversionTrackTaskNoEcalSeeded)