CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.ecalDrivenGsfElectronCoresHGC_cff import ecalDrivenGsfElectronCoresHGC
12 
13 gsfEcalDrivenElectronTask = cms.Task(ecalDrivenGsfElectronCores,ecalDrivenGsfElectrons)
14 gsfEcalDrivenElectronSequence = cms.Sequence(gsfEcalDrivenElectronTask)
15 
16 _gsfEcalDrivenElectronTaskHGC = gsfEcalDrivenElectronTask.copy()
17 _gsfEcalDrivenElectronTaskHGC.add(cms.Task(ecalDrivenGsfElectronCoresHGC,ecalDrivenGsfElectronsHGC))
18 
19 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
20 phase2_hgcal.toReplaceWith(
21  gsfEcalDrivenElectronTask, _gsfEcalDrivenElectronTaskHGC
22 )