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 134 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.

135 {
136  os << f_.header("Rotations Details");
137 
138  DDRotation ddr(nm);
139  if ( ddr.isDefined().second == false ) {
140  os << "<b>ERROR!</b><br><p>The Rotation " << nm << " is not defined!</p>" << endl;
141  return false;
142  }
143  DD3Vector x, y, z;
144  ddr.matrix()->GetComponents(x, y, z);
145  os << f_.h2("Rotation: " + nm.fullname());
146  os << f_.h3("GEANT3 style:");
147  os << "<table border=\"0\">" << endl
148  << "<tr><td>thetaX =</td><td>" << x.Theta()/deg << " deg</td><tr>" << endl
149  << "<tr><td>phiX =</td><td>" << x.Phi()/deg << " deg</td><tr>" << endl
150  << "<tr><td>thetaY =</td><td>" << y.Theta()/deg << " deg</td><tr>" << endl
151  << "<tr><td>phiY =</td><td>" << y.Phi()/deg << " deg</td><tr>" << endl
152  << "<tr><td>thetaZ =</td><td>" << z.Theta()/deg << " deg</td><tr>" << endl
153  << "<tr><td>phiZ =</td><td>" << z.Phi()/deg << " deg</td><tr>" << endl
154  << "</table>";
155 
156  os << f_.h3("Rotation axis & angle (theta,phi,angle)") << endl;
157  os << DDRotation(nm); return true;
158 }
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 112 of file DDHtmlFormatter.cc.

References findNameSpaces(), and DDHtmlDetails::names_.

113 {
114  DDRotation lp;
115  findNameSpaces(lp, names_);
116  return names_;
117 }
Represents a uniquely identifyable rotation matrix.
Definition: DDTransform.h:66
bool findNameSpaces(T dummy, ns_type &m)