]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fixing warning
authorslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Nov 2011 15:14:27 +0000 (15:14 +0000)
committerslindal <slindal@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Nov 2011 15:14:27 +0000 (15:14 +0000)
PWG4/GammaConv/AliV0Reader.cxx

index 06af286cc4965e62ec72feb62fb735767a4c10b4..895206f5bcc5e734add5a1d7a1b1070f5ab0eb95 100644 (file)
@@ -1753,27 +1753,18 @@ Bool_t AliV0Reader::GetHelixCenter(AliESDtrack* track, Double_t b,Int_t charge,
        Double_t ypoint =       radius * TMath::Sin(phi);
 
        if(b<0){
-               if(charge > 0){
-                       xpoint = - xpoint;
-                       ypoint = - ypoint;
-               }
-
-               if(charge < 0){
-                       xpoint =        xpoint;
-                       ypoint =        ypoint;
-               }
+         if(charge > 0){
+               xpoint = - xpoint;
+               ypoint = - ypoint;
+         }
+       
+       } else if(b>0){
+         if(charge < 0){
+               xpoint = - xpoint;
+               ypoint = - ypoint;
+         }
        }
-       if(b>0){
-               if(charge > 0){
-                       xpoint =        xpoint;
-                       ypoint =        ypoint;
-               }
 
-               if(charge < 0){
-                       xpoint = - xpoint;
-                       ypoint = - ypoint;
-               }
-       }
        center[0] =     xpos + xpoint;
        center[1] =     ypos + ypoint;