//-*- 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 = x0*cA - x1*sA; y = x0*sA + x1*cA; z = x2; } 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 ); x0 = x*cA + y*sA; x1 = -x*sA + y*cA; x2 = z; }