CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
10 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
11 pp_on_AA.toReplaceWith(electronSeedsTask, electronSeedsTask.copyAndExclude([trackerDrivenElectronSeeds]))
12 
13 from Configuration.Eras.Modifier_fastSim_cff import fastSim
14 _fastSim_electronSeedsTask = electronSeedsTask.copy()
15 _fastSim_electronSeedsTask.replace(trackerDrivenElectronSeeds, cms.Task(trackerDrivenElectronSeedsTmp,trackerDrivenElectronSeeds))
16 fastSim.toReplaceWith(electronSeedsTask, _fastSim_electronSeedsTask)
17 # replace the ECAL driven electron track candidates with the FastSim emulated ones
19 fastElectronCkfTrackCandidates = FastSimulation.Tracking.electronCkfTrackCandidates_cff.electronCkfTrackCandidates.clone()
20 
21 
24 electronGsfTrackingTask = cms.Task(electronSeedsTask,electronCkfTrackCandidates,electronGsfTracks)
25 electronGsfTracking = cms.Sequence(electronGsfTrackingTask)
26 _electronGsfTrackingTask = electronGsfTrackingTask.copy()
27 _fastSim_electronGsfTrackingTask = electronGsfTrackingTask.copy()
28 _fastSim_electronGsfTrackingTask.replace(electronCkfTrackCandidates,fastElectronCkfTrackCandidates)
29 fastSim.toReplaceWith(electronGsfTrackingTask,_fastSim_electronGsfTrackingTask)
30 
31 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
32 phase2_hgcal.toReplaceWith(
33  electronGsfTrackingTask, _electronGsfTrackingTask
34 )
35 
36 from SimTracker.TrackAssociation.trackTimeValueMapProducer_cfi import trackTimeValueMapProducer
37 gsfTrackTimeValueMapProducer = trackTimeValueMapProducer.clone(trackSrc = 'electronGsfTracks')
38 
39 electronGsfTrackingWithTimingTask = cms.Task(electronGsfTrackingTask.copy(),gsfTrackTimeValueMapProducer)
40 electronGsfTrackingWithTiming = cms.Sequence(electronGsfTrackingWithTimingTask)
41 
42 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
43 phase2_timing.toReplaceWith(electronGsfTrackingTask, electronGsfTrackingWithTimingTask)