Analysis macros for trigger studies