]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
2 Bug fix
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Sep 2008 19:30:20 +0000 (19:30 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 13 Sep 2008 19:30:20 +0000 (19:30 +0000)
Loacal2Global and Global2Local

They compensate each other
the ExB inveked in betwen was incorrect - phi shifeted by pi
(Marian)

TPC/AliTPCTransform.cxx

index 50de28ce7a0fed2bec573545350267212b16dffa..b3de8533a3e059924b4f8561672a8ae188867191 100755 (executable)
@@ -242,8 +242,8 @@ void AliTPCTransform::RotatedGlobal2Global(Int_t sector,Double_t *x) const {
   Double_t cos,sin;
   GetCosAndSin(sector,cos,sin);
   Double_t tmp=x[0];
-  x[0]= cos*tmp+sin*x[1];
-  x[1]=-sin*tmp+cos*x[1];
+  x[0]= cos*tmp-sin*x[1];
+  x[1]=+sin*tmp+cos*x[1];
 }
 
 void AliTPCTransform::Global2RotatedGlobal(Int_t sector,Double_t *x) const {
@@ -253,8 +253,8 @@ void AliTPCTransform::Global2RotatedGlobal(Int_t sector,Double_t *x) const {
   Double_t cos,sin;
   GetCosAndSin(sector,cos,sin);
   Double_t tmp=x[0];
-  x[0]= cos*tmp-sin*x[1];
-  x[1]= sin*tmp+cos*x[1];
+  x[0]= cos*tmp+sin*x[1];
+  x[1]= -sin*tmp+cos*x[1];
 }
 
 void AliTPCTransform::GetCosAndSin(Int_t sector,Double_t &cos,