use TMath::Abs instead of fabs