Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #------------------
0004 #Hybrid clustering:
0005 #------------------
0006 # Producer for Box Particle Flow Super Clusters
0007 from RecoEcal.EgammaClusterProducers.particleFlowSuperClusterECAL_cff import *
0008 # Producer for energy corrections
0009 #from RecoEcal.EgammaClusterProducers.correctedDynamicHybridSuperClusters_cfi import *
0010 # PFECAL super clusters, either hybrid-clustering clone (Box) or mustache.
0011 particleFlowSuperClusteringTask = cms.Task(particleFlowSuperClusterECAL)
0012 particleFlowSuperClusteringSequence = cms.Sequence(particleFlowSuperClusteringTask)
0013 
0014 particleFlowSuperClusterHGCal = particleFlowSuperClusterECAL.clone()
0015 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0016 phase2_hgcal.toModify(
0017     particleFlowSuperClusterHGCal,
0018     PFClusters                     = 'particleFlowClusterHGCal',
0019     useRegression                  = True,
0020     PFBasicClusterCollectionEndcap = "",
0021     PFSuperClusterCollectionEndcap = "",
0022     PFSuperClusterCollectionEndcapWithPreshower = "",
0023     thresh_PFClusterEndcap         = 1.5e-1, # 150 MeV threshold
0024     dropUnseedable                 = True,
0025 )
0026 
0027 phase2_hgcal.toModify( particleFlowSuperClusterHGCal.regressionConfig,
0028     regressionKeyEE = "superclus_hgcal_mean_offline",
0029     uncertaintyKeyEE = "superclus_hgcal_sigma_offline",
0030     isPhaseII = True,
0031     hgcalRecHits = "particleFlowRecHitHGC"
0032             
0033 )
0034 _phase2_hgcal_particleFlowSuperClusteringTask = particleFlowSuperClusteringTask.copy()
0035 _phase2_hgcal_particleFlowSuperClusteringTask.add(particleFlowSuperClusterHGCal)
0036 
0037 phase2_hgcal.toReplaceWith( particleFlowSuperClusteringTask, _phase2_hgcal_particleFlowSuperClusteringTask )