Skip to content

Commit

Permalink
restrict the range of pat::MET corrections and uncertainties to avoid…
Browse files Browse the repository at this point in the history
… NaNs/random values
  • Loading branch information
slava77devel committed Feb 28, 2018
1 parent 36fabf6 commit b77ade5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions comparisons/validate.C
Original file line number Diff line number Diff line change
Expand Up @@ -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][email protected]()>%d",i), true);
plotvar(tName+cName+"_"+recoS+Form(".obj[0].uncertainties_[%d].dsumEt()",i), tName+cName+"_"+recoS+Form(".obj[0][email protected]()>%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][email protected]()>%d",i), true);
plotvar(tName+cName+"_"+recoS+Form(".obj[0].corrections_[%d].dsumEt()",i), tName+cName+"_"+recoS+Form(".obj[0][email protected]()>%d",i), true);
}
}

Expand Down

0 comments on commit b77ade5

Please sign in to comment.