Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:31

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoParticleFlow.PFTracking.trackerDrivenElectronSeeds_cff import *
0004 from RecoEgamma.EgammaElectronProducers.ecalDrivenElectronSeeds_cff import *
0005 from RecoParticleFlow.PFTracking.mergedElectronSeeds_cfi import *
0006 
0007 electronSeedsTask = cms.Task(trackerDrivenElectronSeeds,ecalDrivenElectronSeeds,electronMergedSeeds) 
0008 electronSeeds = cms.Sequence(electronSeedsTask)
0009 
0010 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0011 pp_on_AA.toReplaceWith(electronSeedsTask, electronSeedsTask.copyAndExclude([trackerDrivenElectronSeeds]))
0012 
0013 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0014 _fastSim_electronSeedsTask = electronSeedsTask.copy()
0015 _fastSim_electronSeedsTask.replace(trackerDrivenElectronSeeds, cms.Task(trackerDrivenElectronSeedsTmp,trackerDrivenElectronSeeds))
0016 fastSim.toReplaceWith(electronSeedsTask, _fastSim_electronSeedsTask)
0017 # replace the ECAL driven electron track candidates with the FastSim emulated ones
0018 import FastSimulation.Tracking.electronCkfTrackCandidates_cff
0019 fastElectronCkfTrackCandidates = FastSimulation.Tracking.electronCkfTrackCandidates_cff.electronCkfTrackCandidates.clone()
0020 
0021 
0022 from TrackingTools.GsfTracking.CkfElectronCandidateMaker_cff import *
0023 from TrackingTools.GsfTracking.GsfElectronGsfFit_cff import *
0024 electronGsfTrackingTask = cms.Task(electronSeedsTask,electronCkfTrackCandidates,electronGsfTracks)
0025 electronGsfTracking = cms.Sequence(electronGsfTrackingTask)
0026 _electronGsfTrackingTask = electronGsfTrackingTask.copy()
0027 _fastSim_electronGsfTrackingTask = electronGsfTrackingTask.copy()
0028 _fastSim_electronGsfTrackingTask.replace(electronCkfTrackCandidates,fastElectronCkfTrackCandidates)
0029 fastSim.toReplaceWith(electronGsfTrackingTask,_fastSim_electronGsfTrackingTask)
0030 
0031 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0032 phase2_hgcal.toReplaceWith(
0033   electronGsfTrackingTask, _electronGsfTrackingTask
0034 )
0035 
0036 from SimTracker.TrackAssociation.trackTimeValueMapProducer_cfi import trackTimeValueMapProducer
0037 gsfTrackTimeValueMapProducer = trackTimeValueMapProducer.clone(trackSrc = 'electronGsfTracks')
0038 
0039 electronGsfTrackingWithTimingTask = cms.Task(electronGsfTrackingTask.copy(),gsfTrackTimeValueMapProducer)
0040 electronGsfTrackingWithTiming = cms.Sequence(electronGsfTrackingWithTimingTask)
0041 
0042 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
0043 phase2_timing.toReplaceWith(electronGsfTrackingTask, electronGsfTrackingWithTimingTask)