Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-06-22 02:24:10

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoParticleFlow.PFTracking.modules import GoodSeedProducer
0004 trackerDrivenElectronSeeds = GoodSeedProducer()
0005 
0006 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0007 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0008 for e in [pp_on_XeXe_2017, pp_on_AA]:
0009     e.toModify(trackerDrivenElectronSeeds, MinPt = 5.0) 
0010 
0011 # tracker driven electron seeds depend on the generalTracks trajectory collection
0012 # However, in FastSim jobs, trajectories are only available for the 'before mixing' track collections
0013 # Therefore we let the seeds depend on the 'before mixing' generalTracks collection
0014 # TODO: investigate whether the dependence on trajectories can be avoided
0015 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0016 trackerDrivenElectronSeedsTmp = trackerDrivenElectronSeeds.clone(TkColList = ["generalTracksBeforeMixing"])
0017 import FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi
0018 _fastSim_trackerDrivenElectronSeeds = FastSimulation.Tracking.ElectronSeedTrackRefFix_cfi.fixedTrackerDrivenElectronSeeds.clone()
0019 _fastSim_trackerDrivenElectronSeeds.seedCollection.setModuleLabel("trackerDrivenElectronSeedsTmp")
0020 _fastSim_trackerDrivenElectronSeeds.idCollection = ["trackerDrivenElectronSeedsTmp:preid",]
0021 fastSim.toReplaceWith(trackerDrivenElectronSeeds,_fastSim_trackerDrivenElectronSeeds)
0022 
0023 from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
0024 egamma_lowPt_exclusive.toModify(trackerDrivenElectronSeeds,MinPt = 1.0)
0025