I think this may be what you are trying to do:
3dcalc -a dset+orig -b weight+orig -expr 'a*b' -prefix dset_wtd
3dcalc -a dset_wtd+orig -prefix wt_mask -expr 'step(abs(a))'
3dROIstats -nzsum -mask wt_mask+orig dset_wtd+orig
This applies a weighting mask to a similar dataset at each time point and then prints the sum of each sub-brick volume at each time point. Is that what you want to do?