CMS 3D CMS Logo

particleFlowCluster_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 #from RecoParticleFlow.PFClusterProducer.towerMakerPF_cfi import *
5 #from RecoParticleFlow.PFClusterProducer.particleFlowCaloResolution_cfi import _timeResolutionHCALMaxSample
6 
12 
15 
22 
23 particleFlowClusterECALTask = cms.Task(particleFlowClusterECAL)
24 particleFlowClusterECALSequence = cms.Sequence(particleFlowClusterECALTask)
25 
26 pfClusteringECALTask = cms.Task(particleFlowRecHitECAL,
27  particleFlowClusterECALUncorrected,
28  particleFlowClusterECALTask)
29 pfClusteringECAL = cms.Sequence(pfClusteringECALTask)
30 
31 pfClusteringPSTask = cms.Task(particleFlowRecHitPS,particleFlowClusterPS)
32 pfClusteringPS = cms.Sequence(pfClusteringPSTask)
33 
34 pfClusteringHBHEHFTask = cms.Task(particleFlowRecHitHBHE,
35  particleFlowRecHitHF,
36  particleFlowClusterHBHE,
37  particleFlowClusterHF,
38  particleFlowClusterHCAL)
39 pfClusteringHBHEHF = cms.Sequence(pfClusteringHBHEHFTask)
40 
41 pfClusteringHBHEHFOnlyTask = cms.Task(particleFlowRecHitHBHEOnly,
42  particleFlowRecHitHF,
43  particleFlowClusterHBHEOnly,
44  particleFlowClusterHF,
45  particleFlowClusterHCALOnly)
46 
47 #--- Legacy HCAL Only Task
48 pfClusteringHBHEHFOnlyLegacyTask = pfClusteringHBHEHFOnlyTask.copy()
49 
50 pfClusteringHOTask = cms.Task(particleFlowRecHitHO,particleFlowClusterHO)
51 pfClusteringHO = cms.Sequence(pfClusteringHOTask)
52 
53 particleFlowClusterWithoutHOTask = cms.Task(particleFlowBadHcalPseudoCluster,
54  pfClusteringPSTask,
55  pfClusteringECALTask,
56  pfClusteringHBHEHFTask)
57 particleFlowClusterWithoutHO = cms.Sequence(particleFlowClusterWithoutHOTask)
58 
59 particleFlowClusterTask = cms.Task(particleFlowBadHcalPseudoCluster,
60  pfClusteringPSTask,
61  pfClusteringECALTask,
62  pfClusteringHBHEHFTask,
63  pfClusteringHOTask)
64 particleFlowCluster = cms.Sequence(particleFlowClusterTask)
65 
66 #HGCal
67 
69 pfClusteringHGCalTask = cms.Task(particleFlowRecHitHGC)
70 pfClusteringHGCal = cms.Sequence(pfClusteringHGCalTask)
71 
72 _phase2_hgcal_particleFlowClusterTask = particleFlowClusterTask.copy()
73 _phase2_hgcal_particleFlowClusterTask.add(pfClusteringHGCalTask)
74 
75 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
76 phase2_hgcal.toReplaceWith( particleFlowClusterTask, _phase2_hgcal_particleFlowClusterTask )
77 
78 #timing
79 
80 from RecoParticleFlow.PFClusterProducer.particleFlowClusterTimeAssigner_cfi import particleFlowTimeAssignerECAL
81 from RecoParticleFlow.PFSimProducer.ecalBarrelClusterFastTimer_cfi import ecalBarrelClusterFastTimer
82 _phase2_timing_particleFlowClusterECALTask = particleFlowClusterECALTask.copy()
83 _phase2_timing_particleFlowClusterECALTask.add(cms.Task(ecalBarrelClusterFastTimer,
84  particleFlowTimeAssignerECAL))
85 
86 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
87 phase2_timing.toReplaceWith(particleFlowClusterECALTask,
88  _phase2_timing_particleFlowClusterECALTask)
89 phase2_timing.toModify(particleFlowClusterECAL,
90  inputECAL = 'particleFlowTimeAssignerECAL')
91 
92 # Replace HBHE rechit and clustering with Alpaka modules
93 
95 
97  process.load("RecoParticleFlow.PFClusterProducer.pfClusterHBHEAlpaka_cff")
98 
99 modifyConfigurationPFClusterAlpaka_ = alpaka.makeProcessModifier(_addProcessPFClusterAlpaka)