CMS 3D CMS Logo

trackerDrivenElectronSeeds_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoParticleFlow.PFTracking.modules import GoodSeedProducer
4 trackerDrivenElectronSeeds = GoodSeedProducer()
5 
6 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
7 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
8 for e in [pp_on_XeXe_2017, pp_on_AA]:
9  e.toModify(trackerDrivenElectronSeeds, MinPt = 5.0)
10 
11 # tracker driven electron seeds depend on the generalTracks trajectory collection
12 # However, in FastSim jobs, trajectories are only available for the 'before mixing' track collections
13 # Therefore we let the seeds depend on the 'before mixing' generalTracks collection
14 # TODO: investigate whether the dependence on trajectories can be avoided
15 from Configuration.Eras.Modifier_fastSim_cff import fastSim
16 trackerDrivenElectronSeedsTmp = trackerDrivenElectronSeeds.clone(TkColList = ["generalTracksBeforeMixing"])
17 import FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi
18 _fastSim_trackerDrivenElectronSeeds = FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi.fixedTrackerDrivenElectronSeeds.clone()
19 _fastSim_trackerDrivenElectronSeeds.seedCollection.setModuleLabel("trackerDrivenElectronSeedsTmp")
20 _fastSim_trackerDrivenElectronSeeds.idCollection = ["trackerDrivenElectronSeedsTmp:preid",]
21 fastSim.toReplaceWith(trackerDrivenElectronSeeds,_fastSim_trackerDrivenElectronSeeds)
22 
23 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
24 egamma_lowPt_exclusive.toModify(trackerDrivenElectronSeeds,MinPt = 1.0)
25