CMS 3D CMS Logo

gsfElectronSequence_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #==============================================================================
4 # Sequence to make final electrons.
5 # In the past, this was including the seeding, but this one is directly
6 # imported in the reco sequences since the integration with pflow.
7 #==============================================================================
8 
9 from RecoEgamma.EgammaElectronProducers.ecalDrivenGsfElectronCores_cfi import ecalDrivenGsfElectronCores
10 from RecoEgamma.EgammaElectronProducers.gsfElectronCores_cfi import gsfElectronCores
11 from RecoEgamma.EgammaElectronProducers.ecalDrivenGsfElectronCoresFromMultiCl_cff import ecalDrivenGsfElectronCoresFromMultiCl
13 gsfElectronTask = cms.Task(ecalDrivenGsfElectronCores,ecalDrivenGsfElectrons,gsfElectronCores,gsfElectrons)
14 gsfElectronSequence = cms.Sequence(gsfElectronTask)
15 
16 gsfEcalDrivenElectronTask = cms.Task(ecalDrivenGsfElectronCores,ecalDrivenGsfElectrons)
17 gsfEcalDrivenElectronSequence = cms.Sequence(gsfEcalDrivenElectronTask)
18 
19 _gsfEcalDrivenElectronTaskFromMultiCl = gsfEcalDrivenElectronTask.copy()
20 _gsfEcalDrivenElectronTaskFromMultiCl.add(cms.Task(ecalDrivenGsfElectronCoresFromMultiCl,ecalDrivenGsfElectronsFromMultiCl))
21 _gsfEcalDrivenElectronSequenceFromMultiCl = cms.Sequence(_gsfEcalDrivenElectronTaskFromMultiCl)
22 
23 
26 
27 electronIsoTask = cms.Task(
28  edBasedElectronIsoTask,
29  pfBasedElectronIsoTask
30  )
31 electronIsoSequence = cms.Sequence(electronIsoTask)
32 
33 gsfElectronMergingTask = cms.Task(electronIsoTask,gsfElectronCores,gsfElectrons)
34 gsfElectronMergingSequence = cms.Sequence(gsfElectronMergingTask)
35 
36 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
37 phase2_hgcal.toReplaceWith(
38  gsfEcalDrivenElectronTask, _gsfEcalDrivenElectronTaskFromMultiCl
39 )