Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:34:01

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from RecoEgamma.EgammaElectronProducers.gsfElectronSequence_cff import *
0004 from RecoEgamma.EgammaElectronProducers.uncleanedOnlyElectronSequence_cff import *
0005 from RecoEgamma.EgammaPhotonProducers.photonSequence_cff import *
0006 from RecoEgamma.EgammaPhotonProducers.conversionSequence_cff import *
0007 from RecoEgamma.EgammaPhotonProducers.conversionTrackSequence_cff import *
0008 from RecoEgamma.EgammaPhotonProducers.allConversionSequence_cff import *
0009 from RecoEgamma.EgammaPhotonProducers.gedPhotonSequence_cff import *
0010 from RecoEgamma.EgammaIsolationAlgos.egammaIsolationSequence_cff import *
0011 from RecoEgamma.EgammaIsolationAlgos.interestingEgammaIsoDetIdsSequence_cff import *
0012 from RecoEgamma.PhotonIdentification.photonId_cff import *
0013 from RecoEgamma.ElectronIdentification.electronIdSequence_cff import *
0014 from RecoEgamma.EgammaHFProducers.hfEMClusteringSequence_cff import *
0015 from TrackingTools.Configuration.TrackingTools_cff import *
0016 
0017 from RecoEgamma.EgammaIsolationAlgos.egmIsolationDefinitions_cff import *
0018 
0019 egammaGlobalRecoTask = cms.Task(electronGsfTrackingTask,conversionTrackTask,allConversionTask)
0020 egammaGlobalReco = cms.Sequence(egammaGlobalRecoTask)
0021 # this might be historical: not sure why we do this
0022 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0023 _fastSim_egammaGlobalRecoTask = egammaGlobalRecoTask.copy()
0024 _fastSim_egammaGlobalRecoTask.replace(conversionTrackTask,conversionTrackTaskNoEcalSeeded)
0025 fastSim.toReplaceWith(egammaGlobalRecoTask, _fastSim_egammaGlobalRecoTask)
0026 
0027 egammaHighLevelRecoPrePFTask = cms.Task(gsfEcalDrivenElectronTask,uncleanedOnlyElectronTask,conversionTask,photonTask)
0028 egammaHighLevelRecoPrePF = cms.Sequence(egammaHighLevelRecoPrePFTask)
0029 fastSim.toReplaceWith(egammaHighLevelRecoPrePFTask,egammaHighLevelRecoPrePFTask.copyAndExclude([uncleanedOnlyElectronTask,conversionTask]))
0030 
0031 egammaHighLevelRecoPostPFTask = cms.Task(interestingEgammaIsoDetIdsTask,egmIsolationTask,photonIDTask,photonIDTaskGED,eIdTask,hfEMClusteringTask)
0032 egammaHighLevelRecoPostPF = cms.Sequence(egammaHighLevelRecoPostPFTask)
0033 
0034 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
0035 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
0036 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0037 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0038 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
0039 #HI-specific algorithms needed in pp scenario special configurations 
0040 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi import photonIsolationHIProducerpp
0041 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi import photonIsolationHIProducerppGED
0042 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi import photonIsolationHIProducerppIsland
0043 
0044 _egammaHighLevelRecoPostPF_HITask = egammaHighLevelRecoPostPFTask.copy()
0045 _egammaHighLevelRecoPostPF_HITask.add(photonIsolationHIProducerpp)
0046 _egammaHighLevelRecoPostPF_HITask.add(photonIsolationHIProducerppGED)
0047 _egammaHighLevelRecoPostPF_HITask.add(photonIsolationHIProducerppIsland)
0048 for e in [pA_2016, peripheralPbPb, pp_on_AA, pp_on_XeXe_2017, ppRef_2017]:
0049     e.toReplaceWith(egammaHighLevelRecoPostPFTask, _egammaHighLevelRecoPostPF_HITask)