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 
23 
24 particleFlowClusterECALTask = cms.Task(particleFlowClusterECAL)
25 particleFlowClusterECALSequence = cms.Sequence(particleFlowClusterECALTask)
26 
27 pfClusteringECALTask = cms.Task(particleFlowRecHitECAL,
28  particleFlowClusterECALUncorrected,
29  particleFlowClusterECALTask)
30 pfClusteringECAL = cms.Sequence(pfClusteringECALTask)
31 
32 pfClusteringPSTask = cms.Task(particleFlowRecHitPS,particleFlowClusterPS)
33 pfClusteringPS = cms.Sequence(pfClusteringPSTask)
34 
35 #pfClusteringHBHEHF = cms.Sequence(towerMakerPF*particleFlowRecHitHCAL*particleFlowClusterHCAL+particleFlowClusterHFHAD+particleFlowClusterHFEM)
36 
37 pfClusteringHBHEHFTask = cms.Task(particleFlowRecHitHBHE,particleFlowRecHitHF,particleFlowClusterHBHE,particleFlowClusterHF,particleFlowClusterHCAL)
38 pfClusteringHBHEHF = cms.Sequence(pfClusteringHBHEHFTask)
39 
40 pfClusteringHOTask = cms.Task(particleFlowRecHitHO,particleFlowClusterHO)
41 pfClusteringHO = cms.Sequence(pfClusteringHOTask)
42 
43 particleFlowClusterWithoutHOTask = cms.Sequence(
44  particleFlowBadHcalPseudoCluster,
45  pfClusteringPSTask,
46  pfClusteringECALTask,
47  pfClusteringHBHEHFTask
48 )
49 particleFlowClusterWithoutHO = cms.Sequence(particleFlowClusterWithoutHOTask)
50 
51 particleFlowClusterTask = cms.Task(
52  particleFlowBadHcalPseudoCluster,
53  pfClusteringPSTask,
54  pfClusteringECALTask,
55  pfClusteringHBHEHFTask,
56  pfClusteringHOTask
57 )
58 particleFlowCluster = cms.Sequence(particleFlowClusterTask)
59 
60 #HGCal
61 
63 pfClusteringHGCal = cms.Sequence(particleFlowRecHitHGC)
64 
65 _phase2_hgcal_particleFlowCluster = particleFlowCluster.copy()
66 _phase2_hgcal_particleFlowCluster += pfClusteringHGCal
67 
68 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
69 phase2_hgcal.toReplaceWith( particleFlowCluster, _phase2_hgcal_particleFlowCluster )
70 
71 #timing
72 
73 from RecoParticleFlow.PFClusterProducer.particleFlowClusterTimeAssigner_cfi import particleFlowTimeAssignerECAL
74 from RecoParticleFlow.PFSimProducer.ecalBarrelClusterFastTimer_cfi import ecalBarrelClusterFastTimer
75 _phase2_timing_particleFlowClusterECALTask = particleFlowClusterECALTask.copy()
76 _phase2_timing_particleFlowClusterECALTask.add(cms.Task(ecalBarrelClusterFastTimer,
77  particleFlowTimeAssignerECAL))
78 
79 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
80 phase2_timing.toReplaceWith(particleFlowClusterECALTask,
81  _phase2_timing_particleFlowClusterECALTask)
82 phase2_timing.toModify(particleFlowClusterECAL,
83  inputECAL = cms.InputTag('particleFlowTimeAssignerECAL'))