Study of the granularity for a tracking calorimeter with optimal rejection of proton background in positron detection