CMS 3D CMS Logo

Public Member Functions

DDPseudoTrap Class Reference

#include <DDSolid.h>

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

List of all members.

Public Member Functions

bool atMinusZ () const
 true, if cut-out or rounding is on the -z side
 DDPseudoTrap (const DDSolid &s)
double halfZ () const
 half of the z-Axis
double radius () const
 radius of the cut-out (neg.) or rounding (pos.)
double x1 () const
 half length along x on -z
double x2 () const
 half length along x on +z
double y1 () const
 half length along y on -z
double y2 () const
 half length along y on +z

Detailed Description

Definition at line 143 of file DDSolid.h.


Constructor & Destructor Documentation

DDPseudoTrap::DDPseudoTrap ( const DDSolid s)

Definition at line 222 of file DDSolid.cc.

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

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

Member Function Documentation

bool DDPseudoTrap::atMinusZ ( ) const

true, if cut-out or rounding is on the -z side

Definition at line 243 of file DDSolid.cc.

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

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

{ return rep().parameters()[6]; }
double DDPseudoTrap::halfZ ( ) const
double DDPseudoTrap::radius ( ) const

radius of the cut-out (neg.) or rounding (pos.)

Definition at line 241 of file DDSolid.cc.

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

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

{ return rep().parameters()[5]; }
double DDPseudoTrap::x1 ( ) const
double DDPseudoTrap::x2 ( ) const
double DDPseudoTrap::y1 ( ) const
double DDPseudoTrap::y2 ( ) const