CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

RotationIO.cc
Go to the documentation of this file.
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
double zz() const
double yz() const
double zx() const
std::ostream & print(std::ostream &os) const
Definition RotationIO.cc:22
double yx() const
double zy() const
double xx() const
double yy() const
double xz() const
double xy() const