Anisotropic flow in HYDJET++: interplay between soft and hard physics