Important bits of code for the z->ee selection