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 () const
double rIn () const
double rOut () const
double startPhi () const
double zhalf () const

Private Member Functions

 DDTubs ()

Detailed Description

Definition at line 275 of file DDSolid.h.


Constructor & Destructor Documentation

DDTubs::DDTubs ( const DDSolid s)

Definition at line 499 of file DDSolid.cc.

References ddtubs, 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 DDException(ex);
  }
}
DDTubs::DDTubs ( ) [private]

Member Function Documentation

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

Definition at line 514 of file DDSolid.cc.

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

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

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