Selection and analysis code for tt+gg analysis