Macro to analyse decays