]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCParam.h
AliTPCcalibDButil.cxx - bug fix
[u/mrichter/AliRoot.git] / TPC / AliTPCParam.h
index 5bae3b8d4c69823b7f4012caf8c6e429ce7a08f3..d3bf7da2a6c8c00e556c0247060e1b771db31537 100644 (file)
@@ -520,7 +520,7 @@ inline void AliTPCParam::Transform1to2(Float_t *xyz, Int_t *index) const
   //we must have information about sector!
   //rotate to given sector
   Double_t xyzmaster[3] = {xyz[0],xyz[1],xyz[2]};
-  Double_t xyzlocal[3];  
+  Double_t xyzlocal[3]={0,0,0};
   if (index[1]>=0 && index[1]<fNSector) 
     fGlobalMatrix[index[1]]->MasterToLocal(xyzmaster,xyzlocal);
   xyz[0] = xyzlocal[0];
@@ -545,9 +545,9 @@ inline void AliTPCParam::Transform2to1(Float_t *xyz, Int_t *index) const
   xyz[1]=y1;
   xyz[2]=fZLength-xyz[2]; 
   if (index[1]<fNInnerSector)
-    if ( index[1]>=(fNInnerSector>>1)) xyz[2]*=-1.;
+    {if ( index[1]>=(fNInnerSector>>1))        xyz[2]*=-1.;}
   else 
-    if ( (index[1]-fNInnerSector) >= (fNOuterSector>>1) )    xyz[2]*=-1;      
+    {if ( (index[1]-fNInnerSector) >= (fNOuterSector>>1) )    xyz[2]*=-1;}
   index[0]=1;
 }