also use selectInputFile in setClosure sample
Factorize out selection of NLO curve files
new function getBinningFromHistogram, used whereever we need to rebin.