CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
HepRotOutput Class Reference

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

#include <CLHEPToROOTMath.h>

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.

18 { }
HepRotOutput::~HepRotOutput ( )
inline

Definition at line 19 of file CLHEPToROOTMath.h.

19 { }

Member Function Documentation

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

Definition at line 20 of file CLHEPToROOTMath.h.

References gather_cfg::cout.

20  {
21  std::cout << "[ " << std::setw(12) << std::fixed << std::setprecision(5) << r.xx();
22  std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.xy();
23  std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.xz() << " ]" << std::endl;
24  std::cout << "[ " << std::setw(12) << std::fixed << std::setprecision(5) << r.yx();
25  std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.yy();
26  std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.yz() << " ]" << std::endl;
27  std::cout << "[ " << std::setw(12) << std::fixed << std::setprecision(5) << r.zx();
28  std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.zy();
29  std::cout << ", " << std::setw(12) << std::fixed << std::setprecision(5) << r.zz() << " ]" << std::endl;
30  }
tuple cout
Definition: gather_cfg.py:121