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.ecalDrivenGsfElectronCoresFromMultiCl_cff import ecalDrivenGsfElectronCoresFromMultiCl
12 
13 gsfEcalDrivenElectronTask = cms.Task(ecalDrivenGsfElectronCores,ecalDrivenGsfElectrons)
14 gsfEcalDrivenElectronSequence = cms.Sequence(gsfEcalDrivenElectronTask)
15 
16 _gsfEcalDrivenElectronTaskFromMultiCl = gsfEcalDrivenElectronTask.copy()
17 _gsfEcalDrivenElectronTaskFromMultiCl.add(cms.Task(ecalDrivenGsfElectronCoresFromMultiCl,ecalDrivenGsfElectronsFromMultiCl))
18 
19 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
20 phase2_hgcal.toReplaceWith(
21  gsfEcalDrivenElectronTask, _gsfEcalDrivenElectronTaskFromMultiCl
22 )
gsfElectrons_cfi