CMS 3D CMS Logo

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