number of cores now an argument
put 0 for default weight instead of nan
fixed a case where NaN weight were propagated to the TTree, thus making weighting impossible