CMS 3D CMS Logo

RecoEgamma_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
16 
18 
19 #importing new gedGsfElectronSequence :
20 #from RecoEgamma.EgammaElectronProducers.gedGsfElectronSequence_cff import *
22 
23 egammaGlobalReco = cms.Sequence(electronGsfTracking*conversionTrackSequence*allConversionSequence)
24 # this might be historical: not sure why we do this
25 from Configuration.Eras.Modifier_fastSim_cff import fastSim
26 _fastSim_egammaGlobalReco = egammaGlobalReco.copy()
27 _fastSim_egammaGlobalReco.replace(conversionTrackSequence,conversionTrackSequenceNoEcalSeeded)
28 fastSim.toReplaceWith(egammaGlobalReco, _fastSim_egammaGlobalReco)
29 
30 egammareco = cms.Sequence(electronSequence*conversionSequence*photonSequence)
31 egammaHighLevelRecoPrePF = cms.Sequence(gsfEcalDrivenElectronSequence*uncleanedOnlyElectronSequence*conversionSequence*photonSequence)
32 # not commisoned and not relevant in FastSim (?):
33 fastSim.toReplaceWith(egammareco, egammareco.copyAndExclude([conversionSequence]))
34 fastSim.toReplaceWith(egammaHighLevelRecoPrePF,egammaHighLevelRecoPrePF.copyAndExclude([uncleanedOnlyElectronSequence,conversionSequence]))
35 
36 #egammaHighLevelRecoPostPF = cms.Sequence(gsfElectronMergingSequence*interestingEgammaIsoDetIds*photonIDSequence*eIdSequence*hfEMClusteringSequence)
37 #adding new gedGsfElectronSequence and gedPhotonSequence :
38 #egammaHighLevelRecoPostPF = cms.Sequence(gsfElectronMergingSequence*gedGsfElectronSequence*interestingEgammaIsoDetIds*gedPhotonSequence*photonIDSequence*eIdSequence*hfEMClusteringSequence)
39 egammaHighLevelRecoPostPF = cms.Sequence(interestingEgammaIsoDetIds*egmIsolationSequence*photonIDSequence*photonIDSequenceGED*eIdSequence*hfEMClusteringSequence)
40 
41 
42 egammarecoFull = cms.Sequence(egammareco*interestingEgammaIsoDetIds*egmIsolationSequence*photonIDSequence*eIdSequence*hfEMClusteringSequence)
43 egammarecoWithID = cms.Sequence(egammareco*photonIDSequence*eIdSequence)
44 egammareco_woConvPhotons = cms.Sequence(electronSequence*photonSequence)
45 egammareco_withIsolation = cms.Sequence(egammareco*egammaIsolationSequence)
46 egammareco_withIsolation_woConvPhotons = cms.Sequence(egammareco_woConvPhotons*egammaIsolationSequence)
47 egammareco_withPhotonID = cms.Sequence(egammareco*photonIDSequence)
48 egammareco_withElectronID = cms.Sequence(egammareco*eIdSequence)
49 
50 egammarecoFull_woHFElectrons = cms.Sequence(egammareco*interestingEgammaIsoDetIds*photonIDSequence*eIdSequence)
51 
52 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
53 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
54 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
55 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
56 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
57 #HI-specific algorithms needed in pp scenario special configurations
58 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi import photonIsolationHIProducerpp
59 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi import photonIsolationHIProducerppGED
60 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi import photonIsolationHIProducerppIsland
61 
62 _egammaHighLevelRecoPostPF_HI = egammaHighLevelRecoPostPF.copy()
63 _egammaHighLevelRecoPostPF_HI += photonIsolationHIProducerpp
64 _egammaHighLevelRecoPostPF_HI += photonIsolationHIProducerppGED
65 _egammaHighLevelRecoPostPF_HI += photonIsolationHIProducerppIsland
66 for e in [pA_2016, peripheralPbPb, pp_on_AA_2018, pp_on_XeXe_2017, ppRef_2017]:
67  e.toReplaceWith(egammaHighLevelRecoPostPF, _egammaHighLevelRecoPostPF_HI)