CMS 3D CMS Logo

Public Member Functions

DDTruncTubs Class Reference

A truncated tube section. More...

#include <DDSolid.h>

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

List of all members.

Public Member Functions

double cutAtDelta () const
 truncation at end of the tube-section
double cutAtStart () const
 truncation at begin of the tube-section
bool cutInside () const
 true, if truncation is on the inner side of the tube-section
 DDTruncTubs (const DDSolid &s)
double deltaPhi () const
 angular span of the tube-section
double rIn () const
 inner radius
double rOut () const
 outer radius
double startPhi () const
 angular start of the tube-section
double zHalf () const
 half of the z-Axis

Detailed Description

A truncated tube section.

Definition at line 164 of file DDSolid.h.


Constructor & Destructor Documentation

DDTruncTubs::DDTruncTubs ( const DDSolid s)

Definition at line 194 of file DDSolid.cc.

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

                                          : DDSolid(s)
{
  if (s.shape() != ddtrunctubs) {
    edm::LogError ("DDSolid") << "s.shape()=" << s.shape() << "  " << s << std::endl;
    std::string ex = "Solid [" + s.name().ns() + ":" + s.name().name() + "] is no DDTruncTubs\n";
    ex = ex + "Use a different solid interface!";
    throw DDException(ex);
  }
}

Member Function Documentation

double DDTruncTubs::cutAtDelta ( ) const

truncation at end of the tube-section

Definition at line 216 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), DDCoreToDDXMLOutput::solid(), and DDG4SolidConverter::trunctubs().

{ return rep().parameters()[6];}
double DDTruncTubs::cutAtStart ( ) const

truncation at begin of the tube-section

Definition at line 214 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), DDCoreToDDXMLOutput::solid(), and DDG4SolidConverter::trunctubs().

{ return rep().parameters()[5];}
bool DDTruncTubs::cutInside ( ) const

true, if truncation is on the inner side of the tube-section

Definition at line 218 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), DDCoreToDDXMLOutput::solid(), and DDG4SolidConverter::trunctubs().

{ return bool(rep().parameters()[7]);}
double DDTruncTubs::deltaPhi ( ) const

angular span of the tube-section

Definition at line 212 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), DDCoreToDDXMLOutput::solid(), and DDG4SolidConverter::trunctubs().

{ return rep().parameters()[4];}
double DDTruncTubs::rIn ( ) const

inner radius

Definition at line 206 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), DDCoreToDDXMLOutput::solid(), and DDG4SolidConverter::trunctubs().

{ return rep().parameters()[1];}
double DDTruncTubs::rOut ( ) const

outer radius

Definition at line 208 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), DDCoreToDDXMLOutput::solid(), and DDG4SolidConverter::trunctubs().

{ return rep().parameters()[2];}
double DDTruncTubs::startPhi ( ) const

angular start of the tube-section

Definition at line 210 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), DDCoreToDDXMLOutput::solid(), and DDG4SolidConverter::trunctubs().

{ return rep().parameters()[3];}
double DDTruncTubs::zHalf ( ) const

half of the z-Axis

Definition at line 204 of file DDSolid.cc.

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

Referenced by SolidsForOnline::beginRun(), TGeoMgrFromDdd::createShape(), DDCoreToDDXMLOutput::solid(), and DDG4SolidConverter::trunctubs().

{ return rep().parameters()[0];}