1 import FWCore.ParameterSet.Config
as cms
19 egammaGlobalRecoTask = cms.Task(electronGsfTrackingTask,conversionTrackTask,allConversionTask)
20 egammaGlobalReco = cms.Sequence(egammaGlobalRecoTask)
22 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
23 _fastSim_egammaGlobalRecoTask = egammaGlobalRecoTask.copy()
24 _fastSim_egammaGlobalRecoTask.replace(conversionTrackTask,conversionTrackTaskNoEcalSeeded)
25 fastSim.toReplaceWith(egammaGlobalRecoTask, _fastSim_egammaGlobalRecoTask)
27 egammaHighLevelRecoPrePFTask = cms.Task(gsfEcalDrivenElectronTask,uncleanedOnlyElectronTask,conversionTask,photonTask)
28 egammaHighLevelRecoPrePF = cms.Sequence(egammaHighLevelRecoPrePFTask)
29 fastSim.toReplaceWith(egammaHighLevelRecoPrePFTask,egammaHighLevelRecoPrePFTask.copyAndExclude([uncleanedOnlyElectronTask,conversionTask]))
31 egammaHighLevelRecoPostPFTask = cms.Task(interestingEgammaIsoDetIdsTask,egmIsolationTask,photonIDTask,photonIDTaskGED,eIdTask,hfEMClusteringTask)
32 egammaHighLevelRecoPostPF = cms.Sequence(egammaHighLevelRecoPostPFTask)
34 from Configuration.Eras.Modifier_pA_2016_cff
import pA_2016
35 from Configuration.Eras.Modifier_peripheralPbPb_cff
import peripheralPbPb
36 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
37 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
38 from Configuration.Eras.Modifier_ppRef_2017_cff
import ppRef_2017
40 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi
import photonIsolationHIProducerpp
41 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi
import photonIsolationHIProducerppGED
42 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi
import photonIsolationHIProducerppIsland
44 _egammaHighLevelRecoPostPF_HITask = egammaHighLevelRecoPostPFTask.copy()
45 _egammaHighLevelRecoPostPF_HITask.add(photonIsolationHIProducerpp)
46 _egammaHighLevelRecoPostPF_HITask.add(photonIsolationHIProducerppGED)
47 _egammaHighLevelRecoPostPF_HITask.add(photonIsolationHIProducerppIsland)
48 for e
in [pA_2016, peripheralPbPb, pp_on_AA_2018, pp_on_XeXe_2017, ppRef_2017]:
49 e.toReplaceWith(egammaHighLevelRecoPostPFTask, _egammaHighLevelRecoPostPF_HITask)