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 photonSequence = cms.Sequence( photonCore + photons )
11 _photonSequenceFromMultiCl = photonSequence.copy()
12 _photonSequenceFromMultiCl += ( photonCoreFromMultiCl + photonsFromMultiCl)
13 _photonSequenceWithIsland = photonSequence.copy()
14 _photonSequenceWithIsland += ( islandPhotonCore + islandPhotons )
15 
16 
17 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
18 phase2_hgcal.toReplaceWith(
19  photonSequence, _photonSequenceFromMultiCl
20 )
21 
22 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
23 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
24 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
25 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
26 for e in [pA_2016, peripheralPbPb, pp_on_XeXe_2017, ppRef_2017]:
27  e.toReplaceWith(photonSequence, _photonSequenceWithIsland)