save root file only for imode=2 (i.e. data)