Got crash messages when use RDataFrame to redefine weight in NanoAOD file

This is followed up at Save variable in different branches into one branch .