Changed TTRDistance to TH1D, because number of entries may be too big.