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"))
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_cff
import lowPtGsfElectronSuperClusters
66 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectrons_cff
import lowPtGsfElectrons
69 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronSeedValueMaps_cff
import lowPtGsfElectronSeedValueMaps
72 from RecoEgamma.EgammaElectronProducers.lowPtGsfElectronID_cff
import lowPtGsfElectronID
75 lowPtGsfElectronTask = cms.Task(lowPtGsfElePfTracks,
76 lowPtGsfElectronSeeds,
77 lowPtGsfEleCkfTrackCandidates,
80 lowPtGsfElePfGsfTracks,
81 lowPtGsfElectronSuperClusters,
82 lowPtGsfElectronCores,
84 lowPtGsfElectronSeedValueMaps,
87 lowPtGsfElectronSequence = cms.Sequence(lowPtGsfElectronTask)
89 _fastSim_lowPtGsfElectronTask = lowPtGsfElectronTask.copy()
90 _fastSim_lowPtGsfElectronTask.replace(lowPtGsfElectronSeeds, cms.Task(lowPtGsfElectronSeedsTmp,lowPtGsfElectronSeeds))
91 _fastSim_lowPtGsfElectronTask.replace(lowPtGsfEleCkfTrackCandidates, fastLowPtGsfTkfTrackCandidates)
92 fastSim.toReplaceWith(lowPtGsfElectronTask, _fastSim_lowPtGsfElectronTask)