102 surf1.getPosition(v, xyz);
103 BOOST_TEST(xyz[0] == 0.1,
tol);
104 BOOST_TEST(xyz[1] == 0.2,
tol);
105 BOOST_TEST(xyz[2] == 0.0,
tol);
106 surf3.getPosition(v, xyz);
107 BOOST_TEST(xyz[0] == 1.1,
tol);
108 BOOST_TEST(xyz[1] == 1.2,
tol);
109 BOOST_TEST(xyz[2] == 1.0,
tol);
111 BOOST_TEST(mom[0] == 4./std::sqrt(14.),
tol);
112 BOOST_TEST(mom[1] == 6./std::sqrt(14.),
tol);
113 BOOST_TEST(mom[2] == 2./std::sqrt(14.),
tol);
115 BOOST_TEST(mom[0] == -4./std::sqrt(14.),
tol);
116 BOOST_TEST(mom[1] == -6./std::sqrt(14.),
tol);
117 BOOST_TEST(mom[2] == -2./std::sqrt(14.),
tol);
119 BOOST_TEST(mom[0] == (4.*std::cos(0.1) + 2.*std::sin(0.1))/std::sqrt(14.),
tol);
120 BOOST_TEST(mom[1] == (4.*std::sin(0.1)*std::sin(1.) + 6.*std::cos(1.) - 2.*std::cos(0.1)*std::sin(1.))/std::sqrt(14.),
tol);
121 BOOST_TEST(mom[2] == (-4.*std::sin(0.1)*std::cos(1.) + 6.*std::sin(1.) + 2.*std::cos(0.1)*std::cos(1.))/std::sqrt(14.),
tol);
125 BOOST_CHECK_EXCEPTION( surf1.getMomentum(v, mom), cet::exception, \
126 [](cet::exception
const &
e) \
128 return
e.category() ==
"SurfXYZPlane"; \
KVector< 5 >::type TrackVector
Track state vector, dimension 5.