Tools for ntuple production for ttbarplusgamma