CMS 3D CMS Logo

photonSequence_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # sequence to make photons from clusters in ECAL
5 #
6 # photon producer
9 
10 photonTask = cms.Task(photonCore,photons)
11 photonSequence = cms.Sequence(photonTask)
12 
13 _photonTaskFromMultiCl = photonTask.copy()
14 _photonTaskFromMultiCl.add(photonCoreFromMultiCl,photonsFromMultiCl)
15 _photonTaskWithIsland = photonTask.copy()
16 _photonTaskWithIsland.add(islandPhotonCore,islandPhotons)
17 
18 
19 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
20 phase2_hgcal.toReplaceWith(
21  photonTask, _photonTaskFromMultiCl
22 )
23 
24 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
25 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
26 from Configuration.Eras.Modifier_pp_on_AA_2018_cff import pp_on_AA_2018
27 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
28 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
29 for e in [pA_2016, peripheralPbPb, pp_on_AA_2018, pp_on_XeXe_2017, ppRef_2017]:
30  e.toReplaceWith(photonTask, _photonTaskWithIsland)
photons_cfi
photonCore_cfi