buildAPT function

Create an APT function, from an MCMCconf object