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
72 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronSeedValueMaps_cfi
import lowPtGsfElectronSeedValueMaps
75 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronID_cfi
import lowPtGsfElectronID
79 lowPtGsfElectronTask = cms.Task(lowPtGsfElePfTracks,
80 lowPtGsfElectronSeeds,
81 lowPtGsfEleCkfTrackCandidates,
84 lowPtGsfElePfGsfTracks,
85 lowPtGsfElectronSuperClusters,
86 lowPtGsfElectronCores,
88 lowPtGsfElectronSeedValueMaps,
91 lowPtGsfElectronSequence = cms.Sequence(lowPtGsfElectronTask)
93 _fastSim_lowPtGsfElectronTask = lowPtGsfElectronTask.copy()
94 _fastSim_lowPtGsfElectronTask.replace(lowPtGsfElectronSeeds, cms.Task(lowPtGsfElectronSeedsTmp,lowPtGsfElectronSeeds))
95 _fastSim_lowPtGsfElectronTask.replace(lowPtGsfEleCkfTrackCandidates, fastLowPtGsfTkfTrackCandidates)
96 fastSim.toReplaceWith(lowPtGsfElectronTask, _fastSim_lowPtGsfElectronTask)