Study of the relation between Halo Mass Function and Luminosity Function of galaxies at z=6