Additional protection, to be investigated
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Feb 2004 15:53:06 +0000 (15:53 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Feb 2004 15:53:06 +0000 (15:53 +0000)
TOF/AliTOFv4T0.cxx

index 7908962..dc2bffa 100644 (file)
@@ -983,6 +983,11 @@ void AliTOFv4T0::StepManager()
     gMC->Gmtod(xm,xpad,1);
     gMC->Gmtod(pm,ppad,2);
 
+    
+    if (TMath::Abs(ppad[1])>1) {
+      Warning("StepManager","Abs(ppad) > 1");
+      ppad[1]=TMath::Sign((Float_t)1,ppad[1]);
+    }
     incidenceAngle = TMath::ACos(ppad[1])*kRaddeg;