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 particleFlowSuperClusteringTask = cms.Task(particleFlowSuperClusterECAL)
12 particleFlowSuperClusteringSequence = cms.Sequence(particleFlowSuperClusteringTask)
13 
14 particleFlowSuperClusterHGCal = particleFlowSuperClusterECAL.clone()
15 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
16 phase2_hgcal.toModify(
17  particleFlowSuperClusterHGCal,
18  PFClusters = 'particleFlowClusterHGCal',
19  useRegression = False, #no HGCal regression yet
20  use_preshower = False,
21  PFBasicClusterCollectionEndcap = "",
22  PFSuperClusterCollectionEndcap = "",
23  PFSuperClusterCollectionEndcapWithPreshower = "",
24  thresh_PFClusterEndcap = 1.5e-1, # 150 MeV threshold
25  dropUnseedable = True,
26 )
27 
28 particleFlowSuperClusterHGCalFromMultiCl = particleFlowSuperClusterHGCal.clone()
29 phase2_hgcal.toModify(
30  particleFlowSuperClusterHGCalFromMultiCl,
31  PFClusters = 'particleFlowClusterHGCalFromMultiCl',
32  useRegression = True,
33 )
34 phase2_hgcal.toModify( particleFlowSuperClusterHGCalFromMultiCl.regressionConfig,
35  regressionKeyEE = "superclus_hgcal_mean_offline",
36  uncertaintyKeyEE = "superclus_hgcal_sigma_offline",
37  isPhaseII = True,
38  hgcalRecHits = "particleFlowRecHitHGC"
39 
40 )
41 _phase2_hgcal_particleFlowSuperClusteringTask = particleFlowSuperClusteringTask.copy()
42 _phase2_hgcal_particleFlowSuperClusteringTask.add(particleFlowSuperClusterHGCal)
43 _phase2_hgcal_particleFlowSuperClusteringTask.add(particleFlowSuperClusterHGCalFromMultiCl)
44 
45 phase2_hgcal.toReplaceWith( particleFlowSuperClusteringTask, _phase2_hgcal_particleFlowSuperClusteringTask )
46 
particleFlowSuperClusterECAL_cff