CMS 3D CMS Logo

DDHtmlRoDetails Class Reference

#include <DetectorDescription/RegressionTest/interface/DDHtmlFormatter.h>

Inheritance diagram for DDHtmlRoDetails:

DDHtmlDetails

List of all members.

Public Member Functions

 DDHtmlRoDetails (const string &cat, const string &txt)
bool details (ostream &os, const DDName &)
ns_typenames ()


Detailed Description

Definition at line 154 of file DDHtmlFormatter.h.


Constructor & Destructor Documentation

DDHtmlRoDetails::DDHtmlRoDetails ( const string &  cat,
const string &  txt 
) [inline]

Definition at line 157 of file DDHtmlFormatter.h.

00157 : DDHtmlDetails(cat,txt) {}


Member Function Documentation

bool DDHtmlRoDetails::details ( ostream &  os,
const DDName nm 
) [virtual]

Implements DDHtmlDetails.

Definition at line 124 of file DDHtmlFormatter.cc.

References lat::endl(), DDHtmlDetails::f_, false, DDHtmlFormatter::h2(), DDHtmlFormatter::h3(), DDHtmlFormatter::header(), DDBase< N, C >::isDefined(), DDRotation::matrix(), x, y, and z.

00125 { 
00126   os << f_.header("Rotations Details");
00127 
00128   DDRotation ddr(nm);
00129   if ( ddr.isDefined().second == false ) {
00130     os << "<b>ERROR!</b><br><p>The Rotation " << nm << " is not defined!</p>" << endl;
00131     return false;
00132   }
00133   DD3Vector x, y, z;
00134   ddr.matrix()->GetComponents(x, y, z);
00135   os << f_.h2("Rotation: " + (string)nm);
00136   os << f_.h3("GEANT3 style:"); 
00137   os << "<table border=\"0\">" << endl
00138      << "<tr><td>thetaX =</td><td>" << x.Theta()/deg << " deg</td><tr>" << endl
00139      << "<tr><td>phiX =</td><td>" << x.Phi()/deg << " deg</td><tr>" << endl
00140      << "<tr><td>thetaY =</td><td>" << y.Theta()/deg << " deg</td><tr>" << endl
00141      << "<tr><td>phiY =</td><td>" << y.Phi()/deg << " deg</td><tr>" << endl     
00142      << "<tr><td>thetaZ =</td><td>" << z.Theta()/deg << " deg</td><tr>" << endl
00143      << "<tr><td>phiZ =</td><td>" << z.Phi()/deg << " deg</td><tr>" << endl     
00144      << "</table>";
00145      
00146   os << f_.h3("Rotation axis & angle (theta,phi,angle)") << endl;   
00147   os << DDRotation(nm); return true; 
00148 }

ns_type & DDHtmlRoDetails::names (  )  [virtual]

Implements DDHtmlDetails.

Definition at line 102 of file DDHtmlFormatter.cc.

References findNameSpaces(), lp, and DDHtmlDetails::names_.

00103 {
00104    DDRotation lp;
00105    findNameSpaces(lp, names_);
00106    return names_;
00107 }


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:17:59 2009 for CMSSW by  doxygen 1.5.4