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 
10 gsfElectronTask = cms.Task(ecalDrivenGsfElectronCores,ecalDrivenGsfElectrons,gsfElectronCores,gsfElectrons)
11 gsfElectronSequence = cms.Sequence(gsfElectronTask)
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 _gsfEcalDrivenElectronSequenceFromMultiCl = cms.Sequence(_gsfEcalDrivenElectronTaskFromMultiCl)
19 
20 #gsfElectronMergingSequence = cms.Sequence(gsfElectronCores*gsfElectrons)
21 
24 
25 electronIsoTask = cms.Task(
26  edBasedElectronIsoTask,
27  pfBasedElectronIsoTask
28  )
29 electronIsoSequence = cms.Sequence(electronIsoTask)
30 
31 gsfElectronMergingTask = cms.Task(electronIsoTask,gsfElectronCores,gsfElectrons)
32 gsfElectronMergingSequence = cms.Sequence(gsfElectronMergingTask)
33 
34 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
35 phase2_hgcal.toReplaceWith(
36  gsfEcalDrivenElectronTask, _gsfEcalDrivenElectronTaskFromMultiCl
37 )