22 namespace ActsExamples {
24 namespace Contextual {
58 std::normal_distribution<double>
gauss(0., 1.);
65 if (tx != 0. or ty != 0. or tz != 0.) {
66 const auto& tMatrix = trf.matrix();
67 auto colX = tMatrix.block<3, 1>(0, 0).transpose();
68 auto colY = tMatrix.block<3, 1>(0, 1).transpose();
69 auto colZ = tMatrix.block<3, 1>(0, 2).transpose();
70 Acts::Vector3 newCenter = tMatrix.block<3, 1>(0, 3).transpose() +
71 tx * colX + ty * colY + tz * colZ;
72 trf.translation() = newCenter;