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_pp_on_AA_2018_cff import pp_on_AA_2018
14 pp_on_AA_2018.toReplaceWith(electronSeedsTask, electronSeedsTask.copyAndExclude([trackerDrivenElectronSeeds]))
15 
16 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
17 phase2_hgcal.toReplaceWith(
18  electronSeedsTask, _electronSeedsTaskFromMultiCl )
19 
20 from Configuration.Eras.Modifier_fastSim_cff import fastSim
21 _fastSim_electronSeedsTask = electronSeedsTask.copy()
22 _fastSim_electronSeedsTask.replace(trackerDrivenElectronSeeds, cms.Task(trackerDrivenElectronSeedsTmp,trackerDrivenElectronSeeds))
23 fastSim.toReplaceWith(electronSeedsTask, _fastSim_electronSeedsTask)
24 # replace the ECAL driven electron track candidates with the FastSim emulated ones
26 fastElectronCkfTrackCandidates = FastSimulation.Tracking.electronCkfTrackCandidates_cff.electronCkfTrackCandidates.clone()
27 
28 
31 electronGsfTrackingTask = cms.Task(electronSeedsTask,electronCkfTrackCandidates,electronGsfTracks)
32 electronGsfTracking = cms.Sequence(electronGsfTrackingTask)
33 _electronGsfTrackingTask = electronGsfTrackingTask.copy()
34 _electronGsfTrackingTask.add(cms.Task(electronCkfTrackCandidatesFromMultiCl,electronGsfTracksFromMultiCl))
35 _fastSim_electronGsfTrackingTask = electronGsfTrackingTask.copy()
36 _fastSim_electronGsfTrackingTask.replace(electronCkfTrackCandidates,fastElectronCkfTrackCandidates)
37 fastSim.toReplaceWith(electronGsfTrackingTask,_fastSim_electronGsfTrackingTask)
38 
39 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
40 phase2_hgcal.toReplaceWith(
41  electronGsfTrackingTask, _electronGsfTrackingTask
42 )
43 
44 from SimTracker.TrackAssociation.trackTimeValueMapProducer_cfi import trackTimeValueMapProducer
45 gsfTrackTimeValueMapProducer = trackTimeValueMapProducer.clone(trackSrc = cms.InputTag('electronGsfTracks'))
46 
47 electronGsfTrackingWithTimingTask = cms.Task(electronGsfTrackingTask.copy(),gsfTrackTimeValueMapProducer)
48 electronGsfTrackingWithTiming = cms.Sequence(electronGsfTrackingWithTimingTask)
49 
50 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
51 phase2_timing.toReplaceWith(electronGsfTrackingTask, electronGsfTrackingWithTimingTask)
ecalDrivenElectronSeeds_cff
electronCkfTrackCandidates_cff
trackerDrivenElectronSeeds_cff
mergedElectronSeeds_cfi
GsfElectronGsfFit_cff
CkfElectronCandidateMaker_cff