macros for Qweak analysis