]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Z-axis direction is restored
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Feb 2004 18:14:53 +0000 (18:14 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Feb 2004 18:14:53 +0000 (18:14 +0000)
PHOS/AliPHOSGeometry.cxx
PHOS/AliPHOSPIDv1.cxx

index 61012d5a2809684a7e16565689dabb12e08ec06d..57e01b4b4efd62e7412dd2d9a1e1075a7ce9afe3 100644 (file)
@@ -470,10 +470,10 @@ void AliPHOSGeometry::RelPosInModule(const Int_t * relid, Float_t & x, Float_t &
   
   if ( relid[1] == 0 ) { // its a PbW04 crystal
     x = - ( GetNPhi()/2. - row    + 0.5 ) *  GetCellStep() ; // position of Xtal with respect
-    z =   ( GetNZ()  /2. - column + 0.5 ) *  GetCellStep() ; // of center of PHOS module  
+    z = - ( GetNZ()  /2. - column + 0.5 ) *  GetCellStep() ; // of center of PHOS module  
   }  
   else  {    
     x = - ( GetNumberOfCPVPadsPhi()/2. - row    - 0.5 ) * GetPadSizePhi()  ; // position of pad  with respect
-    z =   ( GetNumberOfCPVPadsZ()  /2. - column - 0.5 ) * GetPadSizeZ()  ; // of center of PHOS module  
+    z = - ( GetNumberOfCPVPadsZ()  /2. - column - 0.5 ) * GetPadSizeZ()  ; // of center of PHOS module  
   }
 }
index 8a6d8adf1034363ebe909ca2d5714d27821d7ea9..0d78494af885453e2346ad74367dc2eddce6d038 100644 (file)
@@ -515,7 +515,6 @@ TVector3 AliPHOSPIDv1::GetMomentumDirection(AliPHOSEmcRecPoint * emc, AliPHOSRec
   
 
   dir = emcglobalpos ;  
-  //dir.SetZ( -dir.Z() ) ;   // why ?  
   dir.SetMag(1.) ;
 
   //account correction to the position of IP