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 egammareco = cms.Sequence(electronSequence*conversionSequence*photonSequence)
25 egammaHighLevelRecoPrePF = cms.Sequence(gsfEcalDrivenElectronSequence*uncleanedOnlyElectronSequence*conversionSequence*photonSequence)
26 
27 #egammaHighLevelRecoPostPF = cms.Sequence(gsfElectronMergingSequence*interestingEgammaIsoDetIds*photonIDSequence*eIdSequence*hfEMClusteringSequence)
28 #adding new gedGsfElectronSequence and gedPhotonSequence :
29 #egammaHighLevelRecoPostPF = cms.Sequence(gsfElectronMergingSequence*gedGsfElectronSequence*interestingEgammaIsoDetIds*gedPhotonSequence*photonIDSequence*eIdSequence*hfEMClusteringSequence)
30 egammaHighLevelRecoPostPF = cms.Sequence(interestingEgammaIsoDetIds*egmIsolationSequence*photonIDSequence*photonIDSequenceGED*eIdSequence*hfEMClusteringSequence)
31 
32 
33 egammarecoFull = cms.Sequence(egammareco*interestingEgammaIsoDetIds*egmIsolationSequence*photonIDSequence*eIdSequence*hfEMClusteringSequence)
34 egammarecoWithID = cms.Sequence(egammareco*photonIDSequence*eIdSequence)
35 egammareco_woConvPhotons = cms.Sequence(electronSequence*photonSequence)
36 egammareco_withIsolation = cms.Sequence(egammareco*egammaIsolationSequence)
37 egammareco_withIsolation_woConvPhotons = cms.Sequence(egammareco_woConvPhotons*egammaIsolationSequence)
38 egammareco_withPhotonID = cms.Sequence(egammareco*photonIDSequence)
39 egammareco_withElectronID = cms.Sequence(egammareco*eIdSequence)
40 
41 egammarecoFull_woHFElectrons = cms.Sequence(egammareco*interestingEgammaIsoDetIds*photonIDSequence*eIdSequence)
42 
43 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
44 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
45 #HI-specific algorithms needed in pp scenario special configurations
46 from RecoEcal.EgammaClusterProducers.islandBasicClusters_cfi import islandBasicClusters
47 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi import photonIsolationHIProducerpp
48 from RecoHI.HiEgammaAlgos.photonIsolationHIProducer_cfi import photonIsolationHIProducerppGED
49 
50 _egammaHighLevelRecoPostPF_HI = egammaHighLevelRecoPostPF.copy()
51 _egammaHighLevelRecoPostPF_HI += islandBasicClusters
52 _egammaHighLevelRecoPostPF_HI += photonIsolationHIProducerpp
53 _egammaHighLevelRecoPostPF_HI += photonIsolationHIProducerppGED
54 for e in [pA_2016, peripheralPbPb]:
55  e.toReplaceWith(egammaHighLevelRecoPostPF, _egammaHighLevelRecoPostPF_HI)