//-*- Mode: C++ -*- // ***************************************************************************** // * // @Autors: I.Kulakov; M.Zyzak; I.Kisel * // @e-mail: I.Kulakov@gsi.de; M.Zyzak@gsi.de; I.Kisel@compeng.uni-frankfurt.de * // * // ***************************************************************************** #include "AliHLTTPCCAMath.h" #include "AliHLTTPCCAParameters.h" void AliHLTTPCCAParameters::CALocalToGlobal( float x0, float x1, float x2, float angle, float& x, float& y, float &z ) { const float cA = CAMath::Cos( angle ); const float sA = CAMath::Sin( angle ); x = x1*cA - x2*sA; y = x1*sA + x2*cA; z = x0; } void AliHLTTPCCAParameters::GlobalToCALocal( float x, float y, float z, float angle, float& x0, float& x1, float& x2 ) { const float cA = CAMath::Cos( angle ); const float sA = CAMath::Sin( angle ); x1 = x*cA + y*sA; x2 = -x*sA + y*cA; x0 = z; }