putting some common functions into HiggsNuNuAnalysisTools