CMS 3D CMS Logo

Public Member Functions | Private 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 (void) const
 truncation at end of the tube-section
double cutAtStart (void) const
 truncation at begin of the tube-section
bool cutInside (void) const
 true, if truncation is on the inner side of the tube-section
 DDTruncTubs (const DDSolid &s)
double deltaPhi (void) const
 angular span of the tube-section
double rIn (void) const
 inner radius
double rOut (void) const
 outer radius
double startPhi (void) const
 angular start of the tube-section
double zHalf (void) const
 half of the z-Axis

Private Member Functions

 DDTruncTubs (void)

Detailed Description

A truncated tube section.

Definition at line 132 of file DDSolid.h.


Constructor & Destructor Documentation

DDTruncTubs::DDTruncTubs ( const DDSolid s)

Definition at line 191 of file DDSolid.cc.

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

                                          : 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 cms::Exception("DDException") << ex;
  }
}
DDTruncTubs::DDTruncTubs ( void  ) [private]

Member Function Documentation

double DDTruncTubs::cutAtDelta ( void  ) const

truncation at end of the tube-section

Definition at line 213 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 ( void  ) const

truncation at begin of the tube-section

Definition at line 211 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 ( void  ) const

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

Definition at line 215 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 ( void  ) const

angular span of the tube-section

Definition at line 209 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 ( void  ) const

inner radius

Definition at line 203 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 ( void  ) const

outer radius

Definition at line 205 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 ( void  ) const

angular start of the tube-section

Definition at line 207 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 ( void  ) const

half of the z-Axis

Definition at line 201 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];}