Skip to content
Snippets Groups Projects

Fix a precision problem

Merged Florian Uhlig requested to merge f.uhlig/cbmroot:fix_sts_local_hit_correction into master
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -92,7 +92,7 @@ Int_t CbmStsSimSensor::ProcessPoint(const CbmStsPoint* point, Double_t eventTime
Double_t tXav = 0.;
Double_t tYav = 0.;
// Int_t tZav = 0;
if (z2 - z1 != 0.) {
if (abs(z2 - z1) > 0.000001) {
tXav = (x2 - x1) / (z2 - z1);
tYav = (y2 - y1) / (z2 - z1);
// tZav = 1;
Loading