RDF for two molecules

The answer might be as simple as choosing a single atom in each molecule and doing the atom-based RDF on those
atoms. E.g. just an RDF on O-O distances in a collection of water molecules.
The compute RDF in LAMMPS can do that if the O atoms have a specific atom type.