Skip to content

Commit

Permalink
Merge pull request #12507 from richard-cms/changeHeavyIonsToUseECALGl…
Browse files Browse the repository at this point in the history
…obalFit_75X

add customization to switch to Global ECAL reco from multifit
  • Loading branch information
cmsbuild committed Nov 21, 2015
2 parents cfd5c90 + 16c237f commit 3117fd3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions RecoHI/Configuration/python/customise_ECALsequence.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import FWCore.ParameterSet.Config as cms

def changeHeavyIonsToUseECALGlobalFit(process) :
if hasattr (process, "caloReco") :
process.load('RecoLocalCalo.EcalRecProducers.ecalGlobalUncalibRecHit_cfi')
process.ecalUncalibRecHitSequenceHI = cms.Sequence(process.ecalGlobalUncalibRecHit*
process.ecalDetIdToBeRecovered)
process.ecalLocalRecoSequenceHI = cms.Sequence(process.ecalUncalibRecHitSequenceHI*
process.ecalRecHitSequence)
process.ecalRecHit.EEuncalibRecHitCollection = cms.InputTag("ecalGlobalUncalibRecHit","EcalUncalibRecHitsEE")
process.ecalRecHit.EBuncalibRecHitCollection = cms.InputTag("ecalGlobalUncalibRecHit","EcalUncalibRecHitsEB")
process.caloReco.replace(process.ecalUncalibRecHitSequence, process.ecalUncalibRecHitSequenceHI)

if hasattr (process, "ecalMonitorTask") :
process.ecalMonitorTask.collectionTags.EBUncalibRecHit = cms.untracked.InputTag("ecalGlobalUncalibRecHit","EcalUncalibRecHitsEB")
process.ecalMonitorTask.collectionTags.EEUncalibRecHit = cms.untracked.InputTag("ecalGlobalUncalibRecHit","EcalUncalibRecHitsEE")
process.ecalMonitorTask.collectionTags.EBLaserLedUncalibRecHit = cms.untracked.InputTag("ecalGlobalUncalibRecHit","EcalUncalibRecHitsEB")
process.ecalMonitorTask.collectionTags.EELaserLedUncalibRecHit = cms.untracked.InputTag("ecalGlobalUncalibRecHit","EcalUncalibRecHitsEE")

return process

0 comments on commit 3117fd3

Please sign in to comment.