CMS 3D CMS Logo

Public Member Functions | Private Member Functions

DDTubs Class Reference

#include <DDSolid.h>

Inheritance diagram for DDTubs:
DDSolid DDBase< DDName, DDI::Solid * >

List of all members.

Public Member Functions

 DDTubs (const DDSolid &s)
double deltaPhi (void) const
double rIn (void) const
double rOut (void) const
double startPhi (void) const
double zhalf (void) const

Private Member Functions

 DDTubs (void)

Detailed Description

Definition at line 252 of file DDSolid.h.


Constructor & Destructor Documentation

DDTubs::DDTubs ( const DDSolid s)

Definition at line 496 of file DDSolid.cc.

References ddtubs, Exception, DDName::name(), DDBase< N, C >::name(), DDName::ns(), and DDSolid::shape().

  : DDSolid(s) {
  if (s.shape() != ddtubs) {
    std::string ex  = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is not a DDTubs.\n";
    ex = ex + "Use a different solid interface!";
    throw cms::Exception("DDException") << ex;
  }
}
DDTubs::DDTubs ( void  ) [private]

Member Function Documentation

double DDTubs::deltaPhi ( void  ) const
double DDTubs::rIn ( void  ) const
double DDTubs::rOut ( void  ) const
double DDTubs::startPhi ( void  ) const

Definition at line 511 of file DDSolid.cc.

References DDBase< DDName, DDI::Solid * >::rep().

Referenced by SolidsForOnline::beginRun(), and DDCoreToDDXMLOutput::solid().

{ return rep().parameters()[3]; }
double DDTubs::zhalf ( void  ) const