1 import FWCore.ParameterSet.Config
as cms
5 lowPtGsfElePfTracks = pfTrack.clone()
6 lowPtGsfElePfTracks.TkColList = [
'generalTracks']
7 lowPtGsfElePfTracks.GsfTracksInEvents =
False 8 lowPtGsfElePfTracks.GsfTrackModuleLabel =
'' 15 lowPtGsfEleTrajectoryFilter = TrajectoryFilterForElectrons.clone()
16 lowPtGsfEleTrajectoryFilter.minPt = 0.
17 lowPtGsfEleTrajectoryFilter.minimumNumberOfHits = 3
18 lowPtGsfEleTrajectoryBuilder = TrajectoryBuilderForElectrons.clone()
19 lowPtGsfEleTrajectoryBuilder.trajectoryFilter.refToPSet_ =
'lowPtGsfEleTrajectoryFilter' 20 lowPtGsfEleCkfTrackCandidates = electronCkfTrackCandidates.clone()
21 lowPtGsfEleCkfTrackCandidates.TrajectoryBuilderPSet.refToPSet_ =
'lowPtGsfEleTrajectoryBuilder' 22 lowPtGsfEleCkfTrackCandidates.src =
'lowPtGsfElectronSeeds' 26 fastLowPtGsfTkfTrackCandidates = FastSimulation.Tracking.electronCkfTrackCandidates_cff.electronCkfTrackCandidates.clone(src = cms.InputTag(
"lowPtGsfElectronSeeds"))
30 lowPtGsfEleFittingSmoother = GsfElectronFittingSmoother.clone()
31 lowPtGsfEleFittingSmoother.ComponentName =
'lowPtGsfEleFittingSmoother' 32 lowPtGsfEleFittingSmoother.MinNumberOfHits = 2
34 lowPtGsfEleGsfTracks = electronGsfTracks.clone()
35 lowPtGsfEleGsfTracks.Fitter =
'lowPtGsfEleFittingSmoother' 36 lowPtGsfEleGsfTracks.src =
'lowPtGsfEleCkfTrackCandidates' 40 lowPtGsfElePfGsfTracks = pfTrackElec.clone()
41 lowPtGsfElePfGsfTracks.GsfTrackModuleLabel =
'lowPtGsfEleGsfTracks' 42 lowPtGsfElePfGsfTracks.PFRecTrackLabel =
'lowPtGsfElePfTracks' 43 lowPtGsfElePfGsfTracks.applyGsfTrackCleaning =
False 44 lowPtGsfElePfGsfTracks.useFifthStepForTrackerDrivenGsf =
True 47 lowPtGsfElectronTask = cms.Task(lowPtGsfElePfTracks,
48 lowPtGsfElectronSeeds,
49 lowPtGsfEleCkfTrackCandidates,
51 lowPtGsfElePfGsfTracks)
52 lowPtGsfElectronSequence = cms.Sequence(lowPtGsfElectronTask)
55 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
56 _fastSim_lowPtGsfElectronTask = lowPtGsfElectronTask.copy()
57 _fastSim_lowPtGsfElectronTask.replace(lowPtGsfElectronSeeds, cms.Task(lowPtGsfElectronSeedsTmp,lowPtGsfElectronSeeds))
58 _fastSim_lowPtGsfElectronTask.replace(lowPtGsfEleCkfTrackCandidates, fastLowPtGsfTkfTrackCandidates)
59 fastSim.toReplaceWith(lowPtGsfElectronTask, _fastSim_lowPtGsfElectronTask)
60 fastSim.toModify(lowPtGsfElePfTracks,TkColList = [
'generalTracksBeforeMixing'])
61 fastSim.toModify(lowPtGsfEleGsfTracks,src = cms.InputTag(
"fastLowPtGsfTkfTrackCandidates"))