]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix to T2L calculation
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Nov 2012 10:26:39 +0000 (10:26 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 6 Nov 2012 10:26:39 +0000 (10:26 +0000)
ITS/UPGRADE/AliITSUGeomTGeo.cxx

index f40761e1f33c2e9cc0143613eb6680529c7c112b..fc866048d481c3c4e7bb6c44d1039d1b95303fd7 100644 (file)
@@ -655,7 +655,7 @@ void AliITSUGeomTGeo::CreateT2LMatrices()
     matSens->LocalToMaster(loc,glo);
     rotm = matSens->GetRotationMatrix();
     Double_t al = -ATan2(rotm[1],rotm[0]);
-    double sn=Sin(al), cs=Cos(al), r=glo[0]*sn-glo[1]*cs, x=r*sn, y=r*cs; // sensor plane PCA to origin
+    double sn=Sin(al), cs=Cos(al), r=glo[0]*sn-glo[1]*cs, x=r*sn, y=-r*cs; // sensor plane PCA to origin
     TGeoHMatrix* t2l = new TGeoHMatrix();
     t2l->RotateZ(ATan2(y,x)*RadToDeg()); // rotate in direction of normal to the sensor plane
     t2l->SetDx(x);