Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # Sequence for clustering in ecal barrel & endcap + preshower
0004 # hybrid clustering sequence
0005 from RecoEcal.EgammaClusterProducers.hybridClusteringSequence_cff import *
0006 # multi5x5 clusters
0007 from RecoEcal.EgammaClusterProducers.multi5x5ClusteringSequence_cff import *
0008 # preshower sequence for multi5x5 clusters
0009 from RecoEcal.EgammaClusterProducers.multi5x5PreshowerClusteringSequence_cff import *
0010 #reduced recHit collection producer
0011 from RecoEcal.EgammaClusterProducers.reducedRecHitsSequence_cff import *
0012 
0013 #create the EcalNextToDeadChannel record on the fly
0014 from RecoEcal.EgammaCoreTools.EcalNextToDeadChannelESProducer_cff import *
0015 # create path with all clustering algos
0016 # NB: preshower MUST be run after multi5x5 clustering in the endcap
0017 
0018 #particle flow super clustering sequence
0019 from RecoEcal.EgammaClusterProducers.particleFlowSuperClusteringSequence_cff import *
0020 
0021 ecalClustersNoPFBoxTask = cms.Task(hybridClusteringTask,
0022                               multi5x5ClusteringTask,
0023                               multi5x5PreshowerClusteringTask)
0024 ecalClustersNoPFBox = cms.Sequence(ecalClustersNoPFBoxTask)
0025 ecalClustersTask = cms.Task(ecalClustersNoPFBoxTask, particleFlowSuperClusteringTask)
0026 ecalClusters = cms.Sequence(ecalClustersTask)
0027 
0028 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
0029 from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
0030 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
0031 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
0032 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
0033 
0034 from RecoEcal.EgammaClusterProducers.islandClusteringSequence_cff import *
0035 
0036 _ecalClustersHITask = ecalClustersTask.copy()
0037 _ecalClustersHITask.add(islandClusteringTask)
0038 for e in [pA_2016, peripheralPbPb, pp_on_AA, pp_on_XeXe_2017, ppRef_2017]:
0039     e.toReplaceWith(ecalClustersTask, _ecalClustersHITask)