diff --git a/DQM/EcalMonitorTasks/python/ClusterTask_cfi.py b/DQM/EcalMonitorTasks/python/ClusterTask_cfi.py index cdc3f7c68949c..5fb9b05d8bbb9 100644 --- a/DQM/EcalMonitorTasks/python/ClusterTask_cfi.py +++ b/DQM/EcalMonitorTasks/python/ClusterTask_cfi.py @@ -498,4 +498,3 @@ ) ) ) - diff --git a/DQM/EcalMonitorTasks/src/ClusterTask.cc b/DQM/EcalMonitorTasks/src/ClusterTask.cc index ea0eb646ac566..f951df373c479 100644 --- a/DQM/EcalMonitorTasks/src/ClusterTask.cc +++ b/DQM/EcalMonitorTasks/src/ClusterTask.cc @@ -81,6 +81,13 @@ namespace ecaldqm { edm::Handle l1GTHndl; _evt.getByToken(L1GlobalTriggerReadoutRecordToken_, l1GTHndl); + + if (!l1GTHndl.isValid()) { + edm::LogError("L1GlobalTriggerReadoutRecord") + << "Failed to retrieve L1GlobalTriggerReadoutRecord from the Event!"; + return; // Exit the function early if the handle is invalid + } + DecisionWord const& dWord(l1GTHndl->decisionWord()); //Ecal diff --git a/DQM/Integration/python/clients/ecal_dqm_sourceclient-live_cfg.py b/DQM/Integration/python/clients/ecal_dqm_sourceclient-live_cfg.py index 9b9d1cdb91d7f..7f172a5619742 100644 --- a/DQM/Integration/python/clients/ecal_dqm_sourceclient-live_cfg.py +++ b/DQM/Integration/python/clients/ecal_dqm_sourceclient-live_cfg.py @@ -164,7 +164,7 @@ ### Sequences ### process.ecalPreRecoSequence = cms.Sequence(process.bunchSpacingProducer + process.ecalDigis) -process.ecalRecoSequence = cms.Sequence((process.ecalMultiFitUncalibRecHit+process.ecalDetIdToBeRecovered+process.ecalRecHit)+(process.simEcalTriggerPrimitiveDigis+process.gtDigis)+(process.hybridClusteringSequence+process.multi5x5ClusteringSequence)) +process.ecalRecoSequence = cms.Sequence((process.ecalMultiFitUncalibRecHit+process.ecalDetIdToBeRecovered+process.ecalRecHit)+(process.simEcalTriggerPrimitiveDigis+process.gtStage2Digis)+(process.hybridClusteringSequence+process.multi5x5ClusteringSequence)) process.multi5x5ClusteringSequence = cms.Sequence(process.multi5x5BasicClustersCleaned+process.multi5x5SuperClustersCleaned+process.multi5x5BasicClustersUncleaned+process.multi5x5SuperClustersUncleaned+process.multi5x5SuperClusters) process.hybridClusteringSequence = cms.Sequence(process.cleanedHybridSuperClusters+process.uncleanedHybridSuperClusters+process.hybridSuperClusters+process.correctedHybridSuperClusters+process.uncleanedOnlyCorrectedHybridSuperClusters)