1 import FWCore.ParameterSet.Config
as cms
4 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
8 lowPtGsfElePfTracks = pfTrack.clone(
9 TkColList = [
'generalTracks'],
10 GsfTracksInEvents =
False,
11 GsfTrackModuleLabel =
'' 13 fastSim.toModify(lowPtGsfElePfTracks,TkColList = [
'generalTracksBeforeMixing'])
20 lowPtGsfEleTrajectoryFilter = TrajectoryFilterForElectrons.clone(
22 minimumNumberOfHits = 3
24 lowPtGsfEleTrajectoryBuilder = TrajectoryBuilderForElectrons.clone(
25 trajectoryFilter = dict(refToPSet_ =
'lowPtGsfEleTrajectoryFilter')
27 lowPtGsfEleCkfTrackCandidates = electronCkfTrackCandidates.clone(
28 TrajectoryBuilderPSet = dict(refToPSet_ =
'lowPtGsfEleTrajectoryBuilder'),
29 src =
'lowPtGsfElectronSeeds' 32 fastLowPtGsfTkfTrackCandidates = FastSimulation.Tracking.electronCkfTrackCandidates_cff.electronCkfTrackCandidates.clone(src =
"lowPtGsfElectronSeeds")
36 lowPtGsfEleFittingSmoother = GsfElectronFittingSmoother.clone(
37 ComponentName =
'lowPtGsfEleFittingSmoother',
41 lowPtGsfEleGsfTracks = electronGsfTracks.clone(
42 Fitter =
'lowPtGsfEleFittingSmoother',
43 src =
'lowPtGsfEleCkfTrackCandidates' 45 fastSim.toModify(lowPtGsfEleGsfTracks,src =
"fastLowPtGsfTkfTrackCandidates")
48 from RecoEgamma.EgammaElectronProducers.lowPtGsfToTrackLinks_cfi
import lowPtGsfToTrackLinks
52 lowPtGsfElePfGsfTracks = pfTrackElec.clone(
53 GsfTrackModuleLabel =
'lowPtGsfEleGsfTracks',
54 PFRecTrackLabel =
'lowPtGsfElePfTracks',
55 applyGsfTrackCleaning =
False,
56 useFifthStepForTrackerDrivenGsf =
True 63 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronSuperClusters_cfi
import lowPtGsfElectronSuperClusters
66 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronCores_cff
import lowPtGsfElectronCores
73 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronSeedValueMaps_cff
import lowPtGsfElectronSeedValueMaps
74 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronSeedValueMaps_cff
import rekeyLowPtGsfElectronSeedValueMaps
77 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronID_cfi
import lowPtGsfElectronID
80 lowPtGsfElectronTask = cms.Task(lowPtGsfElePfTracks,
81 lowPtGsfElectronSeeds,
82 lowPtGsfEleCkfTrackCandidates,
85 lowPtGsfElePfGsfTracks,
86 lowPtGsfElectronSuperClusters,
87 lowPtGsfElectronCores,
88 lowPtGsfElectronsPreRegression,
90 lowPtGsfElectronSeedValueMaps,
91 rekeyLowPtGsfElectronSeedValueMaps,
94 lowPtGsfElectronSequence = cms.Sequence(lowPtGsfElectronTask)
96 _fastSim_lowPtGsfElectronTask = lowPtGsfElectronTask.copy()
97 _fastSim_lowPtGsfElectronTask.replace(lowPtGsfElectronSeeds, cms.Task(lowPtGsfElectronSeedsTmp,lowPtGsfElectronSeeds))
98 _fastSim_lowPtGsfElectronTask.replace(lowPtGsfEleCkfTrackCandidates, fastLowPtGsfTkfTrackCandidates)
99 fastSim.toReplaceWith(lowPtGsfElectronTask, _fastSim_lowPtGsfElectronTask)