CMS 3D CMS Logo

GsfElectronTracking_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
6 
7 electronSeedsTask = cms.Task(trackerDrivenElectronSeeds,ecalDrivenElectronSeeds,electronMergedSeeds)
8 electronSeeds = cms.Sequence(electronSeedsTask)
9 _electronSeedsTaskFromMultiCl = electronSeedsTask.copy()
10 _electronSeedsTaskFromMultiCl.add(cms.Task(ecalDrivenElectronSeedsFromMultiCl,electronMergedSeedsFromMultiCl))
11 _electronSeedsFromMultiCl = cms.Sequence(_electronSeedsTaskFromMultiCl)
12 
13 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
14 phase2_hgcal.toReplaceWith(
15  electronSeedsTask, _electronSeedsTaskFromMultiCl )
16 
17 from Configuration.Eras.Modifier_fastSim_cff import fastSim
18 _fastSim_electronSeedsTask = electronSeedsTask.copy()
19 _fastSim_electronSeedsTask.replace(trackerDrivenElectronSeeds, cms.Task(trackerDrivenElectronSeedsTmp,trackerDrivenElectronSeeds))
20 fastSim.toReplaceWith(electronSeedsTask, _fastSim_electronSeedsTask)
21 # replace the ECAL driven electron track candidates with the FastSim emulated ones
23 fastElectronCkfTrackCandidates = FastSimulation.Tracking.electronCkfTrackCandidates_cff.electronCkfTrackCandidates.clone()
24 
25 
28 electronGsfTrackingTask = cms.Task(electronSeedsTask,electronCkfTrackCandidates,electronGsfTracks)
29 electronGsfTracking = cms.Sequence(electronGsfTrackingTask)
30 _electronGsfTrackingTask = electronGsfTrackingTask.copy()
31 _electronGsfTrackingTask.add(cms.Task(electronCkfTrackCandidatesFromMultiCl,electronGsfTracksFromMultiCl))
32 _fastSim_electronGsfTrackingTask = electronGsfTrackingTask.copy()
33 _fastSim_electronGsfTrackingTask.replace(electronCkfTrackCandidates,fastElectronCkfTrackCandidates)
34 fastSim.toReplaceWith(electronGsfTrackingTask,_fastSim_electronGsfTrackingTask)
35 
36 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
37 phase2_hgcal.toReplaceWith(
38  electronGsfTrackingTask, _electronGsfTrackingTask
39 )
40 
41 from SimTracker.TrackAssociation.trackTimeValueMapProducer_cfi import trackTimeValueMapProducer
42 gsfTrackTimeValueMapProducer = trackTimeValueMapProducer.clone(trackSrc = cms.InputTag('electronGsfTracks'))
43 
44 electronGsfTrackingWithTimingTask = cms.Task(electronGsfTrackingTask.copy(),gsfTrackTimeValueMapProducer)
45 electronGsfTrackingWithTiming = cms.Sequence(electronGsfTrackingWithTimingTask)
46 
47 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
48 phase2_timing.toReplaceWith(electronGsfTrackingTask, electronGsfTrackingWithTimingTask)