Updated check for ppad[1] range
authorvicinanz <vicinanz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Nov 2001 14:36:40 +0000 (14:36 +0000)
committervicinanz <vicinanz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 13 Nov 2001 14:36:40 +0000 (14:36 +0000)
TOF/AliTOFv1.cxx

index 343efbd..1fd4682 100644 (file)
@@ -1047,6 +1047,7 @@ void AliTOFv1::StepManager()
     gMC->Gmtod(xm,xpad,1);
     gMC->Gmtod(pm,ppad,2);
     if(ppad[1]>1.) ppad[1]=1.;
+    if(ppad[1]<-1.) ppad[1]=-1.;
     incidenceAngle = TMath::ACos(ppad[1])*kRaddeg;
 
     z = pos[2];