CMS 3D CMS Logo

Public Member Functions

HepRotOutput Class Reference

C++ functors for output and conversion of CLHEP and ROOT::Math. More...

#include <CLHEPToROOTMath.h>

List of all members.

Public Member Functions

 HepRotOutput ()
void operator() (const CLHEP::HepRotation &r)
 ~HepRotOutput ()

Detailed Description

C++ functors for output and conversion of CLHEP and ROOT::Math.

Definition at line 16 of file CLHEPToROOTMath.h.


Constructor & Destructor Documentation

HepRotOutput::HepRotOutput ( ) [inline]

Definition at line 18 of file CLHEPToROOTMath.h.

{ }
HepRotOutput::~HepRotOutput ( ) [inline]

Definition at line 19 of file CLHEPToROOTMath.h.

{ }

Member Function Documentation

void HepRotOutput::operator() ( const CLHEP::HepRotation &  r) [inline]

Definition at line 20 of file CLHEPToROOTMath.h.

References gather_cfg::cout.

                                                {
    std::cout << "[ " << std::setw(12) << std::fixed << std::setprecision(5) << r.xx();
    std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.xy();
    std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.xz() << " ]" << std::endl;
    std::cout << "[ " << std::setw(12) << std::fixed << std::setprecision(5) << r.yx();
    std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.yy();
    std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.yz() << " ]" << std::endl;
    std::cout << "[ " << std::setw(12) << std::fixed << std::setprecision(5) << r.zx();
    std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.zy();
    std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.zz() << " ]" << std::endl;
  }