Additional protection
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Oct 2004 15:14:59 +0000 (15:14 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Oct 2004 15:14:59 +0000 (15:14 +0000)
STEER/AliESDV0MI.cxx

index 3e9326c59a0b962c0bf9b9df07dc8571576ea461..68dd82d6793cc781438873bdb55bb73fc58dab19 100644 (file)
@@ -133,7 +133,8 @@ void  AliESDV0MI::Update(Float_t vertex[3])
   Double_t phase[2][2],radius[2];
   Int_t  points = phelix.GetRPHIintersections(mhelix, phase, radius,200);
   Double_t delta1=10000,delta2=10000;  
-  
+
+  if (points<=0) return;
   if (points>0){
     phelix.LinearDCA(mhelix,phase[0][0],phase[0][1],radius[0],delta1);
     phelix.LinearDCA(mhelix,phase[0][0],phase[0][1],radius[0],delta1);
@@ -151,6 +152,7 @@ void  AliESDV0MI::Update(Float_t vertex[3])
   points = phelix.GetRPHIintersections(mhelix, phase, radius);
   delta1=10000,delta2=10000;  
   Double_t d1=1000.,d2=10000.;
+  if (points<=0) return;
   if (points>0){
     phelix.ParabolicDCA(mhelix,phase[0][0],phase[0][1],radius[0],delta1);
     phelix.ParabolicDCA(mhelix,phase[0][0],phase[0][1],radius[0],delta1);