diff --git a/reconstruction/dc/src/main/java/org/jlab/rec/dc/hit/FittedHit.java b/reconstruction/dc/src/main/java/org/jlab/rec/dc/hit/FittedHit.java index 621d52694d..00d2a40c27 100644 --- a/reconstruction/dc/src/main/java/org/jlab/rec/dc/hit/FittedHit.java +++ b/reconstruction/dc/src/main/java/org/jlab/rec/dc/hit/FittedHit.java @@ -271,8 +271,8 @@ public void set_TimeToDistance(double cosTrkAngle, double B) { } // System.out.println("setting the time : fit doca = "+x+" dtime(b) = "+deltatime_beta+" intime "+this.get_Time()+" time "+(this.get_Time() + deltatime_beta)); this.set_Time(this.get_Time() - deltatime_beta); - if(this.get_Time()<0) - this.set_Time(0); + if(this.get_Time()<=0) + this.set_Time(0.01); d = tde.interpolateOnGrid(B, Math.toDegrees(ralpha), this.get_Time(), secIdx, slIdx) / this.get_Time(); }