Skip to content

Commit

Permalink
Merge pull request #14963 from dan131riley/HcalTasks-rawtask-bad-even…
Browse files Browse the repository at this point in the history
…t-protection

protect RawTask::_process from processing bad HcalHTRData
  • Loading branch information
davidlange6 authored Aug 6, 2016
2 parents e73c182 + 312d6f3 commit 00855a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DQM/HcalTasks/plugins/RawTask.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ RawTask::RawTask(edm::ParameterSet const& ps):
for (int is=0; is<HcalDCCHeader::SPIGOT_COUNT; is++)
{
int r = hdcc->getSpigotData(is, htr, raw.size());
if (r!=0)
if (r!=0 || !htr.check())
continue;
HcalElectronicsId eid = HcalElectronicsId(
constants::FIBERCH_MIN, constants::FIBER_VME_MIN,
Expand Down

0 comments on commit 00855a1

Please sign in to comment.