CMS 3D CMS Logo

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

#include <DDHtmlFormatter.h>

Inheritance diagram for DDHtmlRoDetails:
DDHtmlDetails

Public Member Functions

 DDHtmlRoDetails (const std::string &cat, const std::string &txt)
 
bool details (std::ostream &os, const DDName &)
 
ns_typenames ()
 
- Public Member Functions inherited from DDHtmlDetails
const std::string & category ()
 
 DDHtmlDetails (const std::string &cat, const std::string &txt)
 
const std::string & text ()
 
virtual ~DDHtmlDetails ()
 

Additional Inherited Members

- Protected Attributes inherited from DDHtmlDetails
std::string cat_
 
DDHtmlFormatter f_
 
ns_type names_
 
std::string txt_
 

Detailed Description

Definition at line 155 of file DDHtmlFormatter.h.

Constructor & Destructor Documentation

DDHtmlRoDetails::DDHtmlRoDetails ( const std::string &  cat,
const std::string &  txt 
)
inline

Definition at line 158 of file DDHtmlFormatter.h.

158 : DDHtmlDetails(cat,txt) {}
def cat
Definition: eostools.py:400
DDHtmlDetails(const std::string &cat, const std::string &txt)

Member Function Documentation

bool DDHtmlRoDetails::details ( std::ostream &  os,
const DDName  
)
virtual

Implements DDHtmlDetails.

Definition at line 148 of file DDHtmlFormatter.cc.

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

149 {
150  os << f_.header("Rotations Details");
151 
152  DDRotation ddr(nm);
153  if ( ddr.isDefined().second == false ) {
154  os << "<b>ERROR!</b><br><p>The Rotation " << nm << " is not defined!</p>" << endl;
155  return false;
156  }
157  DD3Vector x, y, z;
158  ddr.matrix()->GetComponents(x, y, z);
159  os << f_.h2("Rotation: " + nm.fullname());
160  os << f_.h3("GEANT3 style:");
161  os << "<table border=\"0\">" << endl
162  << "<tr><td>thetaX =</td><td>" << x.Theta()/deg << " deg</td><tr>" << endl
163  << "<tr><td>phiX =</td><td>" << x.Phi()/deg << " deg</td><tr>" << endl
164  << "<tr><td>thetaY =</td><td>" << y.Theta()/deg << " deg</td><tr>" << endl
165  << "<tr><td>phiY =</td><td>" << y.Phi()/deg << " deg</td><tr>" << endl
166  << "<tr><td>thetaZ =</td><td>" << z.Theta()/deg << " deg</td><tr>" << endl
167  << "<tr><td>phiZ =</td><td>" << z.Phi()/deg << " deg</td><tr>" << endl
168  << "</table>";
169 
170  os << f_.h3("Rotation axis & angle (theta,phi,angle)") << endl;
171  os << DDRotation(nm); return true;
172 }
DDHtmlFormatter h3(const std::string &content)
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:66
DDHtmlFormatter f_
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > DD3Vector
A DD Translation is currently implemented with Root Vector3D.
Definition: DDTranslation.h:6
DDHtmlFormatter h2(const std::string &content)
DDHtmlFormatter header(const std::string &text, const std::string &style="../../style.css")
volatile std::atomic< bool > shutdown_flag false
ns_type & DDHtmlRoDetails::names ( void  )
virtual

Implements DDHtmlDetails.

Definition at line 126 of file DDHtmlFormatter.cc.

References findNameSpaces(), and DDHtmlDetails::names_.

127 {
128  DDRotation lp;
129  findNameSpaces(lp, names_);
130  return names_;
131 }
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:66
bool findNameSpaces(T dummy, ns_type &m)