Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add customization to switch to Global ECAL reco from multifit #12507

Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions RecoHI/Configuration/python/customise_ECALsequence.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't you also update process.ecalMonitorTask ? (can also check with "hasattr")
This seems the only one missing (based on the prompt reco HI setup)


return process