Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:53:32

0001 #include "DataFormats/GeometrySurface/interface/TkRotation.h"
0002 #include <iostream>
0003 
0004 template <>
0005 std::ostream& operator<<<float>(std::ostream& s, const TkRotation<float>& rtmp) {
0006   return s << " (" << rtmp.xx() << ',' << rtmp.xy() << ',' << rtmp.xz() << ")\n"
0007            << " (" << rtmp.yx() << ',' << rtmp.yy() << ',' << rtmp.yz() << ")\n"
0008            << " (" << rtmp.zx() << ',' << rtmp.zy() << ',' << rtmp.zz() << ") ";
0009 }
0010 
0011 template <>
0012 std::ostream& operator<<<double>(std::ostream& s, const TkRotation<double>& rtmp) {
0013   return s << " (" << rtmp.xx() << ',' << rtmp.xy() << ',' << rtmp.xz() << ")\n"
0014            << " (" << rtmp.yx() << ',' << rtmp.yy() << ',' << rtmp.yz() << ")\n"
0015            << " (" << rtmp.zx() << ',' << rtmp.zy() << ',' << rtmp.zz() << ") ";
0016 }
0017 
0018 template <>
0019 std::ostream& operator<<<float>(std::ostream& s, const TkRotation2D<float>& rtmp) {
0020   return s << rtmp.x() << "\n" << rtmp.y();
0021 }
0022 
0023 template <>
0024 std::ostream& operator<<<double>(std::ostream& s, const TkRotation2D<double>& rtmp) {
0025   return s << rtmp.x() << "\n" << rtmp.y();
0026 }
0027 
0028 namespace geometryDetails {
0029   void TkRotationErr1() { std::cerr << "TkRotation: zero axis" << std::endl; }
0030   void TkRotationErr2() { std::cerr << "TkRotation::rotateAxes: bad axis vectors" << std::endl; }
0031 
0032 }  // namespace geometryDetails