From b77ade5a09493db0c1dc2ebe50dd02e56df4270a Mon Sep 17 00:00:00 2001 From: Slava Krutelyov Date: Wed, 28 Feb 2018 01:21:25 +0100 Subject: [PATCH] restrict the range of pat::MET corrections and uncertainties to avoid NaNs/random values --- comparisons/validate.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/comparisons/validate.C b/comparisons/validate.C index bd2dff8c0604..146b458fab00 100644 --- a/comparisons/validate.C +++ b/comparisons/validate.C @@ -369,11 +369,11 @@ void patMetVars(TString cName){ met("pfMET_[0].Type7Fraction", cName, tName, false, true, true); for (int i = 0; i< 24; ++i){ - plotvar(tName+cName+"_"+recoS+Form(".obj[0].uncertainties_[%d].dpx()",i), "", true); - plotvar(tName+cName+"_"+recoS+Form(".obj[0].uncertainties_[%d].dsumEt()",i), "", true); + plotvar(tName+cName+"_"+recoS+Form(".obj[0].uncertainties_[%d].dpx()",i), tName+cName+"_"+recoS+Form(".obj[0].uncertainties_@.size()>%d",i), true); + plotvar(tName+cName+"_"+recoS+Form(".obj[0].uncertainties_[%d].dsumEt()",i), tName+cName+"_"+recoS+Form(".obj[0].uncertainties_@.size()>%d",i), true); - plotvar(tName+cName+"_"+recoS+Form(".obj[0].corrections_[%d].dpx()",i), "", true); - plotvar(tName+cName+"_"+recoS+Form(".obj[0].corrections_[%d].dsumEt()",i), "", true); + plotvar(tName+cName+"_"+recoS+Form(".obj[0].corrections_[%d].dpx()",i), tName+cName+"_"+recoS+Form(".obj[0].corrections_@.size()>%d",i), true); + plotvar(tName+cName+"_"+recoS+Form(".obj[0].corrections_[%d].dsumEt()",i), tName+cName+"_"+recoS+Form(".obj[0].corrections_@.size()>%d",i), true); } }