Smooth Riemannian Characterization of the Lott--Sturm--Villani $CD(K,n)$ Condition