CMS 3D CMS Logo

particleFlowSuperClusteringSequence_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #------------------
4 #Hybrid clustering:
5 #------------------
6 # Producer for Box Particle Flow Super Clusters
8 # Producer for energy corrections
9 #from RecoEcal.EgammaClusterProducers.correctedDynamicHybridSuperClusters_cfi import *
10 # PFECAL super clusters, either hybrid-clustering clone (Box) or mustache.
11 particleFlowSuperClusteringSequence = cms.Sequence(particleFlowSuperClusterECAL)
12 
13 particleFlowSuperClusterHGCal = particleFlowSuperClusterECAL.clone()
14 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
15 phase2_hgcal.toModify(
16  particleFlowSuperClusterHGCal,
17  PFClusters = cms.InputTag('particleFlowClusterHGCal'),
18  useRegression = cms.bool(False), #no HGCal regression yet
19  use_preshower = cms.bool(False),
20  PFBasicClusterCollectionEndcap = cms.string(""),
21  PFSuperClusterCollectionEndcap = cms.string(""),
22  PFSuperClusterCollectionEndcapWithPreshower = cms.string(""),
23  thresh_PFClusterEndcap = cms.double(1.5e-1), # 150 MeV threshold
24  dropUnseedable = cms.bool(True),
25 )
26 
27 particleFlowSuperClusterHGCalFromMultiCl = particleFlowSuperClusterHGCal.clone()
28 phase2_hgcal.toModify(
29  particleFlowSuperClusterHGCalFromMultiCl,
30  PFClusters = cms.InputTag('particleFlowClusterHGCalFromMultiCl')
31 )
32 _phase2_hgcal_particleFlowSuperClusteringSequence = particleFlowSuperClusteringSequence.copy()
33 _phase2_hgcal_particleFlowSuperClusteringSequence += particleFlowSuperClusterHGCal
34 _phase2_hgcal_particleFlowSuperClusteringSequence += particleFlowSuperClusterHGCalFromMultiCl
35 
36 phase2_hgcal.toReplaceWith( particleFlowSuperClusteringSequence, _phase2_hgcal_particleFlowSuperClusteringSequence )
37