27 {
29
31
32 const double corr = 0.9999999999999999;
33 rot.setZZ (corr);
34
35
36
37
38
39 rot.setXX (rot.xx()/std::sqrt(corr)); rot.setXY (rot.xy()/std::sqrt(corr));
40 rot.setYX (rot.yx()/std::sqrt(corr)); rot.setYY (rot.yy()/std::sqrt(corr));
41
42 cout.setf (std::ios::scientific, std::ios::floatfield);
43 rot.print (cout); cout << "\n";
44 cout.precision (30);
45 cout << rot.xx() << "\t" << rot.xy() << "\t" << rot.xz() << "\n"
46 << rot.yx() << "\t" << rot.yy() << "\t" << rot.yz() << "\n"
47 << rot.zx() << "\t" << rot.zy() << "\t" << rot.zz() << endl;
48 cout << "\nEuler angles:"
49 << "\nphi = " << rot.phi()
50 << "\ttheta = " << rot.theta()
51 << "\tpsi = " << rot.psi()
52 << endl;
53
54 HepRotation newrot (rot.phi(), rot.theta(), rot.psi());
55 newrot.print(cout);
56
57 return 0;
58}