source: trunk/CLHEP/src/RotationIO.cc@ 15

Last change on this file since 15 was 4, checked in by Pavel Demin, 16 years ago

first commit

File size: 1.2 KB
Line 
1// -*- C++ -*-
2// ---------------------------------------------------------------------------
3//
4// This file is a part of the CLHEP - a Class Library for High Energy Physics.
5//
6// This is the implementation of the output method of the HepRotation class,
7// which was introduced when ZOOM PhysicsVectors was merged in.
8//
9
10#ifdef GNUPRAGMA
11#pragma implementation
12#endif
13
14#include "CLHEP/Vector/defs.h"
15#include "CLHEP/Vector/Rotation.h"
16
17#include <iomanip>
18#include <iostream>
19
20namespace CLHEP {
21
22std::ostream & HepRotation::print( std::ostream & os ) const {
23 os << "\n [ ( " <<
24 std::setw(11) << std::setprecision(6) << xx() << " " <<
25 std::setw(11) << std::setprecision(6) << xy() << " " <<
26 std::setw(11) << std::setprecision(6) << xz() << ")\n"
27 << " ( " <<
28 std::setw(11) << std::setprecision(6) << yx() << " " <<
29 std::setw(11) << std::setprecision(6) << yy() << " " <<
30 std::setw(11) << std::setprecision(6) << yz() << ")\n"
31 << " ( " <<
32 std::setw(11) << std::setprecision(6) << zx() << " " <<
33 std::setw(11) << std::setprecision(6) << zy() << " " <<
34 std::setw(11) << std::setprecision(6) << zz() << ") ]\n";
35 return os;
36}
37
38
39} // namespace CLHEP
Note: See TracBrowser for help on using the repository browser.