Relating magnetic reconnection to coronal heating