Restoring macro for efficiency correction in pA