CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 pfClusteringHOTask = cms.Task(particleFlowRecHitHO,particleFlowClusterHO)
48 pfClusteringHO = cms.Sequence(pfClusteringHOTask)
49 
50 particleFlowClusterWithoutHOTask = cms.Task(particleFlowBadHcalPseudoCluster,
51  pfClusteringPSTask,
52  pfClusteringECALTask,
53  pfClusteringHBHEHFTask)
54 particleFlowClusterWithoutHO = cms.Sequence(particleFlowClusterWithoutHOTask)
55 
56 particleFlowClusterTask = cms.Task(particleFlowBadHcalPseudoCluster,
57  pfClusteringPSTask,
58  pfClusteringECALTask,
59  pfClusteringHBHEHFTask,
60  pfClusteringHOTask)
61 particleFlowCluster = cms.Sequence(particleFlowClusterTask)
62 
63 #HGCal
64 
66 pfClusteringHGCalTask = cms.Task(particleFlowRecHitHGC)
67 pfClusteringHGCal = cms.Sequence(pfClusteringHGCalTask)
68 
69 _phase2_hgcal_particleFlowClusterTask = particleFlowClusterTask.copy()
70 _phase2_hgcal_particleFlowClusterTask.add(pfClusteringHGCalTask)
71 
72 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
73 phase2_hgcal.toReplaceWith( particleFlowClusterTask, _phase2_hgcal_particleFlowClusterTask )
74 
75 #timing
76 
77 from RecoParticleFlow.PFClusterProducer.particleFlowClusterTimeAssigner_cfi import particleFlowTimeAssignerECAL
78 from RecoParticleFlow.PFSimProducer.ecalBarrelClusterFastTimer_cfi import ecalBarrelClusterFastTimer
79 _phase2_timing_particleFlowClusterECALTask = particleFlowClusterECALTask.copy()
80 _phase2_timing_particleFlowClusterECALTask.add(cms.Task(ecalBarrelClusterFastTimer,
81  particleFlowTimeAssignerECAL))
82 
83 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
84 phase2_timing.toReplaceWith(particleFlowClusterECALTask,
85  _phase2_timing_particleFlowClusterECALTask)
86 phase2_timing.toModify(particleFlowClusterECAL,
87  inputECAL = 'particleFlowTimeAssignerECAL')