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

Thank you in advance.