Unfolding macro for b-jet RAA analysis