could you please give me a hint how to get the hydrogen bond autocorrelation function of i.e. NH---O=C atoms ?

Thank you in advance.