CLHEP 2.0.4.7 Reference Documentation
CLHEP Home Page CLHEP Documentation CLHEP Bug Reports |
00001 // -*- C++ -*- 00002 // --------------------------------------------------------------------------- 00003 // 00004 // This file is a part of the CLHEP - a Class Library for High Energy Physics. 00005 // 00006 // This is the implementation of the output method of the HepRotation class, 00007 // which was introduced when ZOOM PhysicsVectors was merged in. 00008 // 00009 00010 #ifdef GNUPRAGMA 00011 #pragma implementation 00012 #endif 00013 00014 #include "CLHEP/Vector/defs.h" 00015 #include "CLHEP/Vector/Rotation.h" 00016 00017 #include <iomanip> 00018 #include <iostream> 00019 00020 namespace CLHEP { 00021 00022 std::ostream & HepRotation::print( std::ostream & os ) const { 00023 os << "\n [ ( " << 00024 std::setw(11) << std::setprecision(6) << xx() << " " << 00025 std::setw(11) << std::setprecision(6) << xy() << " " << 00026 std::setw(11) << std::setprecision(6) << xz() << ")\n" 00027 << " ( " << 00028 std::setw(11) << std::setprecision(6) << yx() << " " << 00029 std::setw(11) << std::setprecision(6) << yy() << " " << 00030 std::setw(11) << std::setprecision(6) << yz() << ")\n" 00031 << " ( " << 00032 std::setw(11) << std::setprecision(6) << zx() << " " << 00033 std::setw(11) << std::setprecision(6) << zy() << " " << 00034 std::setw(11) << std::setprecision(6) << zz() << ") ]\n"; 00035 return os; 00036 } 00037 00038 00039 } // namespace CLHEP