Question about using original data in potential files

Hi folks!
1. I'm trying to modify a potential file and the potential energy is associated with the original coordinates of atoms.The original data is read from *.data file. How can I achieve this? I have checked in compute displace/atom command which use the xorigin to calculate the displacement of atoms, and this commmand achieve this by building a new fix astore class. I think it's a bit compilcated. How can I achieve my purpose in a concise way?
Thank you,


If you want clear and concise advice, you have describe your problem with more detail and in a more lucid and concise way.
What kind of potential file are you talking about and what does this have to do with a data file? Compute displace/atom is a diagnostic so how does this fit into the whole scheme?