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