CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RecoEcal_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Sequence for clustering in ecal barrel & endcap + preshower
4 # hybrid clustering sequence
6 # multi5x5 clusters
8 # preshower sequence for multi5x5 clusters
10 #reduced recHit collection producer
12 
13 #create the EcalNextToDeadChannel record on the fly
15 # create path with all clustering algos
16 # NB: preshower MUST be run after multi5x5 clustering in the endcap
17 
18 #particle flow super clustering sequence
20 
21 ecalClustersNoPFBoxTask = cms.Task(hybridClusteringTask,
22  multi5x5ClusteringTask,
23  multi5x5PreshowerClusteringTask)
24 ecalClustersNoPFBox = cms.Sequence(ecalClustersNoPFBoxTask)
25 ecalClustersTask = cms.Task(ecalClustersNoPFBoxTask, particleFlowSuperClusteringTask)
26 ecalClusters = cms.Sequence(ecalClustersTask)
27 
28 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
29 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
30 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
31 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
32 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
33 
35 
36 _ecalClustersHITask = ecalClustersTask.copy()
37 _ecalClustersHITask.add(islandClusteringTask)
38 for e in [pA_2016, peripheralPbPb, pp_on_AA, pp_on_XeXe_2017, ppRef_2017]:
39  e.toReplaceWith(ecalClustersTask, _ecalClustersHITask)