HMDS is used to render the surface of silicon more hydrophobic and thus to match better with the chemistry of the photoresist.
QSense QCM-D technology enables analysis of cleaning process dynamics, surface etching, and surface residual
This blog post explains the concept of RCA cleaning and it's relation to contact angle.