Skip to content

Commit

Permalink
Merge pull request #17389 from matz-e/hcal-better-error-message-LUT-size
Browse files Browse the repository at this point in the history
Use the HCAL DetId in error message instead of just the (useless) tower id
  • Loading branch information
davidlange6 committed Feb 7, 2017
2 parents f521376 + a23ee5d commit f40de2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CalibCalorimetry/CaloTPG/src/CaloTPGTranscoderULUT.cc
Expand Up @@ -124,7 +124,7 @@ HcalTriggerPrimitiveSample CaloTPGTranscoderULUT::hcalCompress(const HcalTrigTow

if (sample >= getOutputLUTSize(id))
throw cms::Exception("Out of Range")
<< "LUT has " << getOutputLUTSize(id) << " entries for " << itower << " but " << sample << " was requested.";
<< "LUT has " << getOutputLUTSize(id) << " entries for " << id << " but " << sample << " was requested.";

if(itower >= outputLUT_.size())
throw cms::Exception("Out of Range") << "No decompression LUT found for " << id;
Expand Down

0 comments on commit f40de2e

Please sign in to comment.