Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-31 23:17:22

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # TPG condition needed by ecalRecHit producer if TT recovery is ON
0004 from RecoLocalCalo.EcalRecProducers.ecalRecHitTPGConditions_cff import *
0005 
0006 # ECAL reconstruction
0007 from RecoLocalCalo.EcalRecProducers.ecalMultiFitUncalibRecHit_cff import *
0008 from RecoLocalCalo.EcalRecProducers.ecalRecHit_cff import *
0009 from RecoLocalCalo.EcalRecProducers.ecalPreshowerRecHit_cfi import *
0010 from RecoLocalCalo.EcalRecProducers.ecalDetIdToBeRecovered_cfi import *
0011 from RecoLocalCalo.EcalRecProducers.ecalCompactTrigPrim_cfi import *
0012 from RecoLocalCalo.EcalRecProducers.ecalTPSkim_cfi import *
0013 from RecoLocalCalo.EcalRecProducers.ecalDetailedTimeRecHit_cfi import *
0014 
0015 ecalUncalibRecHitTask = cms.Task(
0016     ecalMultiFitUncalibRecHitTask,
0017     ecalDetIdToBeRecovered)
0018 
0019 ecalUncalibRecHitSequence = cms.Sequence(ecalUncalibRecHitTask)
0020 
0021 ecalRecHitNoTPTask = cms.Task(
0022     ecalCalibratedRecHitTask,
0023     ecalPreshowerRecHit)
0024 
0025 ecalRecHitNoTPSequence = cms.Sequence(ecalRecHitNoTPTask)
0026 
0027 ecalRecHitTask = cms.Task(
0028     ecalCompactTrigPrim,
0029     ecalTPSkim,
0030     ecalRecHitNoTPTask)
0031 
0032 ecalRecHitSequence = cms.Sequence(ecalRecHitTask)
0033 
0034 ecalLocalRecoTask = cms.Task(
0035     ecalUncalibRecHitTask,
0036     ecalRecHitTask)
0037 
0038 ecalLocalRecoSequence = cms.Sequence(ecalLocalRecoTask)
0039 
0040 ecalOnlyLocalRecoTask = cms.Task(
0041     ecalUncalibRecHitTask,
0042     ecalRecHitNoTPTask)
0043 
0044 ecalOnlyLocalRecoSequence = cms.Sequence(ecalOnlyLocalRecoTask)
0045 
0046 # Phase 2 modifications
0047 from RecoLocalCalo.EcalRecProducers.ecalDetailedTimeRecHit_cfi import *
0048 _phase2_timing_ecalRecHitTask = cms.Task( ecalRecHitTask.copy() , ecalDetailedTimeRecHit )
0049 from Configuration.Eras.Modifier_phase2_timing_cff import phase2_timing
0050 phase2_timing.toReplaceWith( ecalRecHitTask, _phase2_timing_ecalRecHitTask )
0051 from Configuration.Eras.Modifier_phase2_ecal_devel_cff import phase2_ecal_devel
0052 from RecoLocalCalo.EcalRecProducers.ecalUncalibRecHitPhase2_cff import *
0053 phase2_ecal_devel.toReplaceWith(ecalUncalibRecHitTask, ecalUncalibRecHitPhase2Task)
0054 phase2_ecal_devel.toReplaceWith(ecalRecHitNoTPTask, ecalRecHitNoTPTask.copyAndExclude([ecalPreshowerRecHit]))
0055 
0056 # FastSim modifications
0057 _fastSim_ecalRecHitTask = ecalRecHitTask.copyAndExclude([ecalCompactTrigPrim,ecalTPSkim])
0058 _fastSim_ecalUncalibRecHitTask = ecalUncalibRecHitTask.copyAndExclude([ecalDetIdToBeRecovered])
0059 from Configuration.Eras.Modifier_fastSim_cff import fastSim
0060 fastSim.toReplaceWith(ecalRecHitTask, _fastSim_ecalRecHitTask)
0061 fastSim.toReplaceWith(ecalUncalibRecHitTask, _fastSim_ecalUncalibRecHitTask)