1 import FWCore.ParameterSet.Config
as cms
4 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
8 lowPtGsfElePfTracks = pfTrack.clone()
9 lowPtGsfElePfTracks.TkColList = [
'generalTracks']
10 lowPtGsfElePfTracks.GsfTracksInEvents =
False
11 lowPtGsfElePfTracks.GsfTrackModuleLabel =
''
13 fastSim.toModify(lowPtGsfElePfTracks,TkColList = [
'generalTracksBeforeMixing'])
20 lowPtGsfEleTrajectoryFilter = TrajectoryFilterForElectrons.clone()
21 lowPtGsfEleTrajectoryFilter.minPt = 0.
22 lowPtGsfEleTrajectoryFilter.minimumNumberOfHits = 3
23 lowPtGsfEleTrajectoryBuilder = TrajectoryBuilderForElectrons.clone()
24 lowPtGsfEleTrajectoryBuilder.trajectoryFilter.refToPSet_ =
'lowPtGsfEleTrajectoryFilter'
25 lowPtGsfEleCkfTrackCandidates = electronCkfTrackCandidates.clone()
26 lowPtGsfEleCkfTrackCandidates.TrajectoryBuilderPSet.refToPSet_ =
'lowPtGsfEleTrajectoryBuilder'
27 lowPtGsfEleCkfTrackCandidates.src =
'lowPtGsfElectronSeeds'
30 fastLowPtGsfTkfTrackCandidates = FastSimulation.Tracking.electronCkfTrackCandidates_cff.electronCkfTrackCandidates.clone(src = cms.InputTag(
"lowPtGsfElectronSeeds"))
34 lowPtGsfEleFittingSmoother = GsfElectronFittingSmoother.clone()
35 lowPtGsfEleFittingSmoother.ComponentName =
'lowPtGsfEleFittingSmoother'
36 lowPtGsfEleFittingSmoother.MinNumberOfHits = 2
38 lowPtGsfEleGsfTracks = electronGsfTracks.clone()
39 lowPtGsfEleGsfTracks.Fitter =
'lowPtGsfEleFittingSmoother'
40 lowPtGsfEleGsfTracks.src =
'lowPtGsfEleCkfTrackCandidates'
42 fastSim.toModify(lowPtGsfEleGsfTracks,src = cms.InputTag(
"fastLowPtGsfTkfTrackCandidates"))
45 from RecoEgamma.EgammaElectronProducers.lowPtGsfToTrackLinks_cfi
import lowPtGsfToTrackLinks
49 lowPtGsfElePfGsfTracks = pfTrackElec.clone()
50 lowPtGsfElePfGsfTracks.GsfTrackModuleLabel =
'lowPtGsfEleGsfTracks'
51 lowPtGsfElePfGsfTracks.PFRecTrackLabel =
'lowPtGsfElePfTracks'
52 lowPtGsfElePfGsfTracks.applyGsfTrackCleaning =
False
53 lowPtGsfElePfGsfTracks.useFifthStepForTrackerDrivenGsf =
True
60 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronSuperClusters_cfi
import lowPtGsfElectronSuperClusters
63 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronCores_cff
import lowPtGsfElectronCores
69 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronSeedValueMaps_cfi
import lowPtGsfElectronSeedValueMaps
72 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronID_cfi
import lowPtGsfElectronID
76 lowPtGsfElectronTask = cms.Task(lowPtGsfElePfTracks,
77 lowPtGsfElectronSeeds,
78 lowPtGsfEleCkfTrackCandidates,
81 lowPtGsfElePfGsfTracks,
82 lowPtGsfElectronSuperClusters,
83 lowPtGsfElectronCores,
85 lowPtGsfElectronSeedValueMaps,
88 lowPtGsfElectronSequence = cms.Sequence(lowPtGsfElectronTask)
90 _fastSim_lowPtGsfElectronTask = lowPtGsfElectronTask.copy()
91 _fastSim_lowPtGsfElectronTask.replace(lowPtGsfElectronSeeds, cms.Task(lowPtGsfElectronSeedsTmp,lowPtGsfElectronSeeds))
92 _fastSim_lowPtGsfElectronTask.replace(lowPtGsfEleCkfTrackCandidates, fastLowPtGsfTkfTrackCandidates)
93 fastSim.toReplaceWith(lowPtGsfElectronTask, _fastSim_lowPtGsfElectronTask)