20 double cp = std::cos(
phi);
21 double sp = std::sin(
phi);
22 double ct = std::cos(
theta);
23 double st = std::sin(
theta);
45 double angleXZ = std::atan2(ldir.z(),ldir.x());
46 double angleYZ = std::atan2(ldir.z(),ldir.y());
48 double cx = std::cos(angleXZ);
49 double sx = std::sin(angleXZ);
50 double cy = std::cos(angleYZ);
51 double sy = std::sin(angleYZ);
52 double norm = std::sqrt(cx*sy*cx*sy + cy*sx*cy*sx + sx*sy*sx*sy);
53 double zinv = norm/(sx*sy) ;
69 J1(0,0) = -sx*sx*zinv;
70 J1(1,1) = -sy*sy*zinv;
83 (*this)(0,0) = J(0,0);
84 (*this)(0,1) = J(0,1);
85 (*this)(1,0) = J(1,0);
86 (*this)(1,1) = J(1,1);
#define AmgMatrix(rows, cols)
JacobianPhiThetaLocalAngles(const Amg::RotationMatrix3D &rot)
Eigen::Matrix< double, 3, 3 > RotationMatrix3D
Eigen::Matrix< double, 3, 1 > Vector3D
AmgMatrix(3, 3) NeutralParticleParameterCalculator