Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-17 03:27:20

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 #from RecoParticleFlow.PFClusterProducer.towerMakerPF_cfi import *
0005 #from RecoParticleFlow.PFClusterProducer.particleFlowCaloResolution_cfi import _timeResolutionHCALMaxSample
0006 
0007 from RecoParticleFlow.PFClusterProducer.particleFlowRecHitECAL_cfi import *
0008 from RecoParticleFlow.PFClusterProducer.particleFlowRecHitHBHE_cfi import *
0009 from RecoParticleFlow.PFClusterProducer.particleFlowRecHitHF_cfi import *
0010 from RecoParticleFlow.PFClusterProducer.particleFlowRecHitHO_cfi import *
0011 from RecoParticleFlow.PFClusterProducer.particleFlowRecHitPS_cfi import *
0012 
0013 from RecoParticleFlow.PFClusterProducer.particleFlowClusterECALUncorrected_cfi import *
0014 from RecoParticleFlow.PFClusterProducer.particleFlowClusterECAL_cff import *
0015 
0016 from RecoParticleFlow.PFClusterProducer.particleFlowClusterHBHE_cfi import *
0017 from RecoParticleFlow.PFClusterProducer.particleFlowClusterHF_cfi import *
0018 from RecoParticleFlow.PFClusterProducer.particleFlowClusterHCAL_cfi import *
0019 from RecoParticleFlow.PFClusterProducer.particleFlowClusterHO_cfi import *
0020 from RecoParticleFlow.PFClusterProducer.particleFlowClusterPS_cfi import *
0021 from RecoParticleFlow.PFClusterProducer.particleFlowBadHcalPseudoCluster_cff import *
0022 
0023 particleFlowClusterECALTask = cms.Task(particleFlowClusterECAL)
0024 particleFlowClusterECALSequence = cms.Sequence(particleFlowClusterECALTask)
0025 
0026 pfClusteringECALTask = cms.Task(particleFlowRecHitECAL,
0027                                 particleFlowClusterECALUncorrected,
0028                                 particleFlowClusterECALTask)
0029 pfClusteringECAL = cms.Sequence(pfClusteringECALTask) 
0030 
0031 pfClusteringPSTask = cms.Task(particleFlowRecHitPS,particleFlowClusterPS)
0032 pfClusteringPS = cms.Sequence(pfClusteringPSTask)
0033 
0034 pfClusteringHBHEHFTask = cms.Task(particleFlowRecHitHBHE,
0035                                   particleFlowRecHitHF,
0036                                   particleFlowClusterHBHE,
0037                                   particleFlowClusterHF,
0038                                   particleFlowClusterHCAL)
0039 pfClusteringHBHEHF = cms.Sequence(pfClusteringHBHEHFTask)
0040 
0041 pfClusteringHBHEHFOnlyTask = cms.Task(particleFlowRecHitHBHEOnly,
0042                                       particleFlowRecHitHF,
0043                                       particleFlowClusterHBHEOnly,
0044                                       particleFlowClusterHF,
0045                                       particleFlowClusterHCALOnly)
0046 
0047 pfClusteringHOTask = cms.Task(particleFlowRecHitHO,particleFlowClusterHO)
0048 pfClusteringHO = cms.Sequence(pfClusteringHOTask)
0049 
0050 particleFlowClusterWithoutHOTask = cms.Task(particleFlowBadHcalPseudoCluster,
0051                                             pfClusteringPSTask,
0052                                             pfClusteringECALTask,
0053                                             pfClusteringHBHEHFTask)
0054 particleFlowClusterWithoutHO = cms.Sequence(particleFlowClusterWithoutHOTask)
0055 
0056 particleFlowClusterTask = cms.Task(particleFlowBadHcalPseudoCluster,
0057                                    pfClusteringPSTask,
0058                                    pfClusteringECALTask,
0059                                    pfClusteringHBHEHFTask,
0060                                    pfClusteringHOTask)
0061 particleFlowCluster = cms.Sequence(particleFlowClusterTask)
0062 
0063 #HGCal
0064 
0065 from RecoParticleFlow.PFClusterProducer.particleFlowRecHitHGC_cfi import particleFlowRecHitHGC
0066 pfClusteringHGCalTask = cms.Task(particleFlowRecHitHGC)
0067 pfClusteringHGCal = cms.Sequence(pfClusteringHGCalTask)
0068 
0069 _phase2_hgcal_particleFlowClusterTask = particleFlowClusterTask.copy()
0070 _phase2_hgcal_particleFlowClusterTask.add(pfClusteringHGCalTask)
0071 
0072 from Configuration.Eras.Modifier_phase2_hgcal_cff import phase2_hgcal
0073 phase2_hgcal.toReplaceWith( particleFlowClusterTask, _phase2_hgcal_particleFlowClusterTask )
0074 
0075 #timing
0076 
0077 from RecoParticleFlow.PFClusterProducer.particleFlowClusterTimeAssigner_cfi import particleFlowTimeAssignerECAL
0078 from RecoParticleFlow.PFSimProducer.ecalBarrelClusterFastTimer_cfi import ecalBarrelClusterFastTimer
0079 _phase2_timing_particleFlowClusterECALTask = particleFlowClusterECALTask.copy()
0080 _phase2_timing_particleFlowClusterECALTask.add(cms.Task(ecalBarrelClusterFastTimer,
0081                                                         particleFlowTimeAssignerECAL))
0082 
0083 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
0084 phase2_timing.toReplaceWith(particleFlowClusterECALTask,
0085                                   _phase2_timing_particleFlowClusterECALTask)
0086 phase2_timing.toModify(particleFlowClusterECAL,
0087                             inputECAL = 'particleFlowTimeAssignerECAL')