Energy-peak based method to measure top quark mass via B-hadron decay lengths