Skip to content

Commit

Permalink
Merge pull request #11412 from blinkseb/met_fix_75x
Browse files Browse the repository at this point in the history
[75X] Fix crash in pat::MET when no uncertainties are added
  • Loading branch information
davidlange6 committed Nov 10, 2015
2 parents a078f9b + 7543812 commit 912bdd0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DataFormats/PatCandidates/src/MET.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ MET::findMETTotalShift(MET::METCorrectionLevel cor, MET::METUncertainty shift) c


//find uncertainty shift =============================

if (uncertainties_.empty())
return totShift;

if(shift>=MET::METUncertaintySize) throw cms::Exception("Unsupported", "MET uncertainty does not exist");
if(isSmeared && shift<=MET::JetResDown) shift = (MET::METUncertainty)(MET::METUncertaintySize+shift+1);

Expand Down

0 comments on commit 912bdd0

Please sign in to comment.