generation radial distribution function (RDF)

I want to generate RDF from center of water to center of ethanol in my system (200 water + 200 ethanol), but dont know how do this. Can anyone help me?

In addition I want to generate RDF from oxygen of water to oxygen of ethanol, in this case what should I do?