RotationIO.cc

Go to the documentation of this file.
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/Rotation.h"
00015 
00016 #include <iomanip>
00017 #include <iostream>
00018 
00019 namespace CLHEP  {
00020 
00021 std::ostream & HepRotation::print( std::ostream & os ) const {
00022   os << "\n   [ ( " <<
00023         std::setw(11) << std::setprecision(6) << xx() << "   " <<
00024         std::setw(11) << std::setprecision(6) << xy() << "   " <<
00025         std::setw(11) << std::setprecision(6) << xz() << ")\n"
00026      << "     ( " <<
00027         std::setw(11) << std::setprecision(6) << yx() << "   " <<
00028         std::setw(11) << std::setprecision(6) << yy() << "   " <<
00029         std::setw(11) << std::setprecision(6) << yz() << ")\n"
00030      << "     ( " <<
00031         std::setw(11) << std::setprecision(6) << zx() << "   " <<
00032         std::setw(11) << std::setprecision(6) << zy() << "   " <<
00033         std::setw(11) << std::setprecision(6) << zz() << ") ]\n";
00034         return os;
00035 }
00036 
00037 
00038 }  // namespace CLHEP

Generated on Mon May 27 17:50:34 2013 for Geant4 by  doxygen 1.4.7